create user at firstboot

This commit is contained in:
josch 2009-10-26 13:03:49 +00:00
parent 362615fcc1
commit 9891a62765

View file

@ -111,10 +111,6 @@ clear-on-reload
domain-needed domain-needed
__END__ __END__
# add default user
chroot $ROOTDIR useradd user -p //plGAV7Hp3Zo -s /bin/bash
mkdir $ROOTDIR/home/user
# add enlightenment repository # add enlightenment repository
if $EFL; then if $EFL; then
echo deb http://packages.enlightenment.org/debian lenny main extras >> $ROOTDIR/etc/apt/sources.list echo deb http://packages.enlightenment.org/debian lenny main extras >> $ROOTDIR/etc/apt/sources.list
@ -151,7 +147,7 @@ Section "InputDevice"
Option "Protocol" "Auto" Option "Protocol" "Auto"
EndSection EndSection
__END__ __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 # configure nodm
cat > $ROOTDIR/etc/default/nodm << __END__ cat > $ROOTDIR/etc/default/nodm << __END__
NODM_ENABLED=true NODM_ENABLED=true
@ -303,6 +299,9 @@ __HOSTS__
echo "/dev/mtdblock6 /media/nand jffs2 defaults,noatime 0 0" >> /etc/fstab echo "/dev/mtdblock6 /media/nand jffs2 defaults,noatime 0 0" >> /etc/fstab
fi fi
echo "Creating new user"
useradd user -p //plGAV7Hp3Zo -s /bin/bash --create-home
echo "Mounting NAND." echo "Mounting NAND."
mount /media/nand mount /media/nand