Show message at first login fixed
This commit is contained in:
parent
140a5926c2
commit
40fd34a2c8
@ -120,6 +120,9 @@ cp $SRC/lib/bin/armbian.key $DEST/cache/sdcard
|
||||
chroot $DEST/cache/sdcard /bin/bash -c "cat armbian.key | apt-key add -"
|
||||
rm $DEST/cache/sdcard/armbian.key
|
||||
|
||||
# display welcome message at first root login
|
||||
touch $DEST/cache/sdcard/root/.not_logged_in_yet
|
||||
|
||||
# update and upgrade
|
||||
LC_ALL=C LANGUAGE=C LANG=C chroot $DEST/cache/sdcard /bin/bash -c "apt-get -y update" | dialog --progressbox "Updating package databases ..." 20 70
|
||||
|
||||
|
||||
@ -87,8 +87,7 @@ create_board_package (){
|
||||
# first login and reboot note when updated
|
||||
mkdir -p $destination/root $destination/tmp $destination/etc/profile.d
|
||||
install -m 755 $SRC/lib/scripts/check_first_login_reboot.sh $destination/etc/profile.d
|
||||
install -m 755 $SRC/lib/scripts/check_first_login.sh $destination/etc/profile.d
|
||||
touch $destination/root/.not_logged_in_yet
|
||||
install -m 755 $SRC/lib/scripts/check_first_login.sh $destination/etc/profile.d
|
||||
touch $destination/tmp/.reboot_required
|
||||
|
||||
if [[ $LINUXCONFIG == *sun* ]] ; then
|
||||
|
||||
Loading…
Reference in New Issue
Block a user