From 9891a62765ccc6ee4ef4058670f55e4a3334eed9 Mon Sep 17 00:00:00 2001 From: josch Date: Mon, 26 Oct 2009 13:03:49 +0000 Subject: [PATCH] create user at firstboot --- pyneo-rootfs.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pyneo-rootfs.sh b/pyneo-rootfs.sh index 52dded1..2ce79ed 100755 --- a/pyneo-rootfs.sh +++ b/pyneo-rootfs.sh @@ -111,10 +111,6 @@ clear-on-reload domain-needed __END__ -# add default user -chroot $ROOTDIR useradd user -p //plGAV7Hp3Zo -s /bin/bash -mkdir $ROOTDIR/home/user - # add enlightenment repository if $EFL; then echo deb http://packages.enlightenment.org/debian lenny main extras >> $ROOTDIR/etc/apt/sources.list @@ -151,7 +147,7 @@ Section "InputDevice" Option "Protocol" "Auto" EndSection __END__ - echo 'exec matchbox-window-manager -use_titlebar no -use_cursor no' > $ROOTDIR/home/user/.xsession + echo 'exec matchbox-window-manager -use_titlebar no -use_cursor no' > $ROOTDIR/etc/skel/.xsession # configure nodm cat > $ROOTDIR/etc/default/nodm << __END__ NODM_ENABLED=true @@ -303,6 +299,9 @@ __HOSTS__ echo "/dev/mtdblock6 /media/nand jffs2 defaults,noatime 0 0" >> /etc/fstab fi +echo "Creating new user" +useradd user -p //plGAV7Hp3Zo -s /bin/bash --create-home + echo "Mounting NAND." mount /media/nand