Community gatherings on Freenode at #tinycorelinux (webchat)
--- tc-config.old 2009-02-05 17:32:36.000000000 +0200+++ tc-config-1.1 2009-02-05 17:34:48.000000000 +0200@@ -58,15 +58,19 @@ done } +setupHome(){+ tar -C /etc/skel -cf - . | tar -C /home/"$USER" -xf -+ printf 'wm: %s\nicons: %s\n' "$DESKTOP" "$ICONS" > /home/"$USER"/.desktop+ chown -Rh "$USER".staff /home/"$USER"+ chmod g+s /home/"$USER"+}+ addUser(){ echo "${GREEN}Adding user ${YELLOW} $USER ${NORMAL}" /bin/adduser -s /bin/sh -G staff -D "$USER" echo "$USER":tcuser | /usr/sbin/chpasswd echo -e "$USER\tALL=NOPASSWD: ALL" >> /etc/sudoers- tar -C /etc/skel -cf - . | tar -C /home/"$USER" -xf -- printf 'wm: %s\nicons: %s\n' "$DESKTOP" "$ICONS" > /home/"$USER"/.desktop- chown -Rh "$USER".staff /home/"$USER"- chmod g+s /home/"$USER"+ setupHome } tceSetup(){@@ -292,12 +296,7 @@ echo "Device not found! Ignoring persistent CRYPTOHOME request!" fi fi-if [ ! "$CRYPTOHOME_SETUP" ]; then- tar -C /etc/skel -cf - . | tar -C /home/"$USER" -xf -- printf 'wm: %s\nicons: %s\n' "$DESKTOP" "$ICONS" > /home/"$USER"/.desktop- chown -Rh "$USER".staff /home/"$USER"- chmod g+s /home/"$USER"-fi+[ ! "$CRYPTOHOME_SETUP" ] && setupHome unset HOME_SETUP if [ -n "$MYHOME" ]; then@@ -317,12 +316,7 @@ echo "Device not found! Ignoring persistent HOME request!" fi fi-if [ ! "$HOME_SETUP" ]; then- tar -C /etc/skel -cf - . | tar -C /home/"$USER" -xf -- printf 'wm: %s\nicons: %s\n' "$DESKTOP" "$ICONS" > /home/"$USER"/.desktop- chown -Rh "$USER".staff /home/"$USER"- chmod g+s /home/"$USER"-fi+[ ! "$HOME_SETUP" ] && setupHome unset OPT_SETUP if [ -n "$MYOPT" ]; then