slitaz-tools rev 538 4.0.1

Fixed tazx to copy applications.conf outside of if statement /home/USER/.xinitrc is not found. With out this you can't log into tux and it will not copy applications.conf over since .xinitrc is in /etc/skel folder now.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Jan 16 02:37:14 2011 +0000 (2011-01-16)
parents 11559db1bf0c
children b4d7e4763ba1
files tinyutils/tazx
line diff
     1.1 --- a/tinyutils/tazx	Tue Jan 11 13:35:27 2011 +0100
     1.2 +++ b/tinyutils/tazx	Sun Jan 16 02:37:14 2011 +0000
     1.3 @@ -308,16 +308,16 @@
     1.4  	fi
     1.5  	# In Live mode default user needs a xinitrc, since tazx
     1.6  	# is executed only by root.
     1.7 +	CONFIG=/home/$USER/.config/slitaz/applications.conf
     1.8 +	if [ ! -f $CONFIG ]; then
     1.9 +		mkdir -p /home/$USER/.config/slitaz
    1.10 +		cp /etc/slitaz/applications.conf $CONFIG
    1.11 +	fi
    1.12 +	chown -R $USER.$USER /home/$USER/.config/slitaz
    1.13  	if [ ! -f /home/$USER/.xinitrc ]; then
    1.14  		FILE=/home/$USER/.xinitrc
    1.15 -		CONFIG=/home/$USER/.config/slitaz/applications.conf
    1.16 -		if [ ! -f $CONFIG ]; then
    1.17 -			mkdir -p /home/$USER/.config/slitaz
    1.18 -			cp /etc/slitaz/applications.conf $CONFIG
    1.19 -		fi
    1.20  		xinitrc_sample
    1.21  		chown $USER.$USER $FILE
    1.22 -		chown -R $USER.$USER /home/$USER/.config/slitaz
    1.23  	fi
    1.24  }
    1.25