slitaz-boot-scripts rev 62
We need HOME for root at boot time (avoid files in /)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Mar 21 09:50:50 2008 +0100 (2008-03-21) |
parents | 56056966923e |
children | 31837608fcdf |
files | etc/init.d/hwconf.sh |
line diff
1.1 --- a/etc/init.d/hwconf.sh Thu Mar 20 11:00:15 2008 +0000 1.2 +++ b/etc/init.d/hwconf.sh Fri Mar 21 09:50:50 2008 +0100 1.3 @@ -3,6 +3,9 @@ 1.4 # 1.5 . /etc/init.d/rc.functions 1.6 1.7 +# $HOME is not yet set. 1.8 +HOME=/root 1.9 + 1.10 # Sound configuration stuff. First check if sound=no and remoce all sound 1.11 # Kernel modules. 1.12 # 1.13 @@ -46,8 +49,11 @@ 1.14 status 1.15 else 1.16 # Remove LXpanel volumealsa if no sound configuration. 1.17 - if [ -f /usr/share/lxpanel/profile/default/config ]; then 1.18 - sed -i s/'volumealsa'/'space'/ /usr/share/lxpanel/profile/default/config 1.19 + if [ -f /etc/lxpanel/default/config ]; then 1.20 + sed -i s/'volumealsa'/'space'/ /etc/lxpanel/default/config 1.21 + fi 1.22 + if [ -f /etc/lxpanel/openbox/config ]; then 1.23 + sed -i s/'volumealsa'/'space'/ /etc/lxpanel/openbox/config 1.24 fi 1.25 fi 1.26