wok-stable rev 1784

slim: update default_user
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Nov 29 21:46:53 2008 +0000 (2008-11-29)
parents 2715a6dd1893
children e2c988692169
files slim/receipt
line diff
     1.1 --- a/slim/receipt	Sat Nov 29 17:40:56 2008 +0000
     1.2 +++ b/slim/receipt	Sat Nov 29 21:46:53 2008 +0000
     1.3 @@ -35,6 +35,10 @@
     1.4  
     1.5  post_install()
     1.6  {
     1.7 +	local USER
     1.8 +	USER=$(awk -F: '/:1000:1000:/ { print $1 }' < $1/etc/passwd)
     1.9 +	[ -n "$USER" ] &&
    1.10 +	sed -i s/"default_user .*"/"default_user        $USER"/ $1/etc/slim.conf
    1.11  	( cd $1/ ; cpio -o -H newc | gzip -9 ) > \
    1.12  		$1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT
    1.13  etc/slim.conf