Skip to content

Commit 1828627

Browse files
authored
asus: fix charge-upto script
1 parent 497ae13 commit 1828627

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

asus/battery.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
}:
77
let
88
p = pkgs.writeScriptBin "charge-upto" ''
9-
echo ''${0:-100} > /sys/class/power_supply/BAT?/charge_control_end_threshold
9+
#!${pkgs.bash}/bin/bash
10+
echo ''${1:-100} > /sys/class/power_supply/BAT?/charge_control_end_threshold
1011
'';
1112
cfg = config.hardware.asus.battery;
1213
in

0 commit comments

Comments
 (0)