X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F10adduser;h=bdb972c781db62415319146b1a7913aeadf13e5f;hb=b9080e2877ab788d96ff0e16794aa372436fbebf;hp=4c0fe8013958984ce0be03bc28a41a46ea9cf1d6;hpb=2910ae281a07441f55215ca74ec38f1d499420f2;p=live-boot-grml.git diff --git a/scripts/live-bottom/10adduser b/scripts/live-bottom/10adduser index 4c0fe80..bdb972c 100755 --- a/scripts/live-bottom/10adduser +++ b/scripts/live-bottom/10adduser @@ -58,7 +58,7 @@ set passwd/username set passwd/user-uid EOF -if ! grep "${USERNAME}" /root/etc/passwd +if ! grep -qs "${USERNAME}" /root/etc/passwd then echo "The default user (${USERNAME}) is not present," first_user=$(grep '^[^:]*:[^:]*:[12]\?[0-9][0-9][0-9][0-9]:' /root/etc/passwd | head -1 | cut -f1 -d ':') @@ -117,4 +117,9 @@ then mv /root/home/${USERNAME}/Examples /root/home/${USERNAME}/Desktop/ fi +if [ -e /root/usr/share/applications/live-installer-launcher.desktop ] +then + chroot /root install -D -o ${USERNAME} -g ${USERNAME} /usr/share/applications/live-installer-launcher.desktop /home/${USERNAME}/Desktop/live-installer-launcher.desktop +fi + log_end_msg