slitaz-boot-scripts rev 119

bootopts.sh: fix default_user patch for slim.conf
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Oct 20 07:53:10 2008 +0000 (2008-10-20)
parents b648ffc81f2e
children c808d94cb65d
files etc/init.d/bootopts.sh
line diff
     1.1 --- a/etc/init.d/bootopts.sh	Wed Oct 15 14:01:27 2008 +0000
     1.2 +++ b/etc/init.d/bootopts.sh	Mon Oct 20 07:53:10 2008 +0000
     1.3 @@ -107,7 +107,7 @@
     1.4  	chown -R $USER.$USER /home/$USER
     1.5  	# Slim default user.
     1.6  	if [ -f /etc/slim.conf ]; then
     1.7 -		sed -i s/"default_user        hacker"/"default_user        $USER"/\
     1.8 +		sed -i s/"default_user .*"/"default_user        $USER"/\
     1.9  			/etc/slim.conf
    1.10  	fi
    1.11  fi