tazpanel diff hardware.cgi @ rev 280
Added support for get-* packages
author | Christian Mesh meshca@clarkson.edu |
---|---|
date | Mon Mar 19 15:24:19 2012 +0000 (2012-03-19) |
parents | 8eb0c310c78c |
children | 72e9955ebdff |
line diff
1.1 --- a/hardware.cgi Sun Mar 04 18:02:22 2012 +0100 1.2 +++ b/hardware.cgi Mon Mar 19 15:24:19 2012 +0000 1.3 @@ -168,7 +168,9 @@ 1.4 name=$(echo $dev | sed 's|.*/backlight/\([^/]*\).*|\1|') 1.5 cat <<EOT 1.6 <input type="hidden" name="dev" value="$name" /> 1.7 -$(gettext "Brightness") ${name#acpi_}: <select name="brightness" onchange="submit();"> 1.8 +$(gettext "Brightness") \ 1.9 +$(sed 's/.*\.//;s/_*$//' < /sys/devices/virtual/backlight/$name/device/path): 1.10 +<select name="brightness" onchange="submit();"> 1.11 EOT 1.12 max=$(cat /sys/devices/virtual/backlight/$name/max_brightness) 1.13 for i in $(seq 0 $max); do