summaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2024-01-23 17:01:38 +0100
committertv <tv@krebsco.de>2024-01-23 17:01:38 +0100
commit179b13567f0fa2f536ebbf13906b46033ac42a04 (patch)
treee9f410844c891ce29c7cbe54b4b684065bf9559f /pkgs
parent650c9297d854b46e5009473767e2914653c99fec (diff)
q-power_supply: admit : in name
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/simple/q-power_supply.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/simple/q-power_supply.nix b/pkgs/simple/q-power_supply.nix
index b7e5aaa..314bf8f 100644
--- a/pkgs/simple/q-power_supply.nix
+++ b/pkgs/simple/q-power_supply.nix
@@ -5,7 +5,7 @@ writeDashBin "q-power_supply" ''
set -efu
uevent=$1
eval "$(${gnused}/bin/sed -n '
- s/^\([A-Z_]\+=[0-9A-Za-z_-]*\)$/export \1/p
+ s/^\([A-Z_]\+=[0-9A-Za-z:_-]*\)$/export \1/p
' $uevent)"
case $POWER_SUPPLY_TYPE in
Battery)