slitaz-boot-scripts diff etc/init.d/bootopts.sh @ rev 182
set netbook resolution + batt for laptop
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 09 21:16:17 2009 +0100 (2009-11-09) |
parents | 16c27ed1f2c9 |
children | aeaaf8796470 |
line diff
1.1 --- a/etc/init.d/bootopts.sh Sat Oct 24 12:29:17 2009 +0000 1.2 +++ b/etc/init.d/bootopts.sh Mon Nov 09 21:16:17 2009 +0100 1.3 @@ -140,6 +140,9 @@ 1.4 do 1.5 modprobe $mod 1.6 done 1.7 + grep -qs batt /etc/lxpanel/default/panels/panel || 1.8 + sed -i 's/= cpu/= batt\n}\n\nPlugin {\n type = cpu/' \ 1.9 + /etc/lxpanel/default/panels/panel 2> /dev/null 1.10 # Enable Kernel Laptop mode. 1.11 echo "5" > /proc/sys/vm/laptop_mode ;; 1.12 mount)