Skip to content

Commit cc66fdd

Browse files
authored
Merge pull request #1525 from shinishiho/patch-1
asus: fix charge-upto script
2 parents e792f2f + 1828627 commit cc66fdd

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)