wok-current rev 17034
slitaz-configs-base: check for /etc/skel while update ~/.xinitrc
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Sun Aug 17 18:44:51 2014 +0200 (2014-08-17) |
parents | 6c69cec5b70f |
children | a5925e09274e |
files | slitaz-configs-base/receipt |
line diff
1.1 --- a/slitaz-configs-base/receipt Sun Aug 17 17:55:38 2014 +0200 1.2 +++ b/slitaz-configs-base/receipt Sun Aug 17 18:44:51 2014 +0200 1.3 @@ -56,9 +56,14 @@ 1.4 1.5 post_install() 1.6 { 1.7 -echo "Updating ~/.xinitrc" 1.8 - for i in `ls -d /home/*` 1.9 - do 1.10 - cp /etc/skel/.xinitrc $i/.xinitrc 1.11 - done 1.12 +local root 1.13 +root=$1 1.14 +if [ -f /etc/skel/.xinitrc ]; then 1.15 + for i in `ls -d /home/*` 1.16 + do 1.17 + cp -f /etc/skel/.xinitrc $i/.xinitrc 1.18 + cp -f /etc/skel/.xinitrc /root/.xinitrc 1.19 + done 1.20 +fi 1.21 +echo "Updating ~/.xinitrc ... Done." 1.22 }