slitaz-boot-scripts rev 168
hwconf.sh: Modify only RUN_DAEMONS with screen=text (Thanks Lux)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Apr 27 03:01:25 2009 +0200 (2009-04-27) |
parents | b779b19a1271 |
children | 052f4f60ee36 |
files | etc/init.d/hwconf.sh |
line diff
1.1 --- a/etc/init.d/hwconf.sh Sun Apr 26 17:23:17 2009 +0200 1.2 +++ b/etc/init.d/hwconf.sh Mon Apr 27 03:01:25 2009 +0200 1.3 @@ -62,7 +62,9 @@ 1.4 export NEW_SCREEN=`cat /proc/cmdline | sed 's/.*screen=\([^ ]*\).*/\1/'` 1.5 if [ "$NEW_SCREEN" = "text" ]; then 1.6 echo -n "Disabling X login manager: slim..." 1.7 - sed -i s/'slim'/''/ /etc/rcS.conf 1.8 + . /etc/rcS.conf 1.9 + RUN_DAEMONS=`echo $RUN_DAEMONS | sed s/' slim'/''/` 1.10 + sed -i s/"RUN_DAEMONS.*"/"RUN_DAEMONS=\"$RUN_DAEMONS\"/" /etc/rcS.conf 1.11 status 1.12 else 1.13 tazx `cat /etc/X11/wm.default`