tazpanel diff hardware.cgi @ rev 266
installer.cgi: add i18n, new pot and po files, fr.po updated
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Thu Mar 08 21:06:46 2012 +0100 (2012-03-08) |
parents | 8eb0c310c78c |
children | 72e9955ebdff |
line diff
1.1 --- a/hardware.cgi Sun Mar 04 18:02:22 2012 +0100 1.2 +++ b/hardware.cgi Thu Mar 08 21:06:46 2012 +0100 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