create user at firstboot
This commit is contained in:
parent
362615fcc1
commit
9891a62765
1 changed files with 4 additions and 5 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue