|
@@ -349,7 +349,7 @@ EOF
|
349
|
349
|
echo ' exit' >> $rootdir/root/.bashrc
|
350
|
350
|
echo ' fi' >> $rootdir/root/.bashrc
|
351
|
351
|
echo -n ' NEW_USER_PASSWORD="$(openssl rand -base64 30 | cut -c1-' >> $rootdir/root/.bashrc
|
352
|
|
- echo "${MINIMUM_PASSWORD_LENGTH})\"" >> $rootdir/root/.bashrc
|
|
352
|
+ echo "${DEFAULT_PASSWORD_LENGTH})\"" >> $rootdir/root/.bashrc
|
353
|
353
|
echo ' fi' >> $rootdir/root/.bashrc
|
354
|
354
|
echo ' echo "${NEW_USER_PASSWORD}" > ~/login.txt' >> $rootdir/root/.bashrc
|
355
|
355
|
|
|
@@ -361,8 +361,6 @@ EOF
|
361
|
361
|
PRESS_KEY_MESSAGE=$'Press any key to continue...'
|
362
|
362
|
echo " echo \"${NEW_LOGIN_PASSWORD_MESSAGE1}\"" >> $rootdir/root/.bashrc
|
363
|
363
|
echo ' echo ""' >> $rootdir/root/.bashrc
|
364
|
|
- echo ' toilet "${NEW_USER_PASSWORD}"' >> $rootdir/root/.bashrc
|
365
|
|
- echo ' echo ""' >> $rootdir/root/.bashrc
|
366
|
364
|
echo ' echo " ${NEW_USER_PASSWORD}"' >> $rootdir/root/.bashrc
|
367
|
365
|
echo ' echo ""' >> $rootdir/root/.bashrc
|
368
|
366
|
echo " echo \"${NEW_LOGIN_PASSWORD_MESSAGE2}\"" >> $rootdir/root/.bashrc
|
|
@@ -1015,7 +1013,7 @@ fi
|
1015
|
1013
|
if [[ $VARIANT != "meshclient" && $VARIANT != "meshusb" && $VARIANT != "mesh" ]]; then
|
1016
|
1014
|
chroot "$rootdir" apt-get install -y openssh-server
|
1017
|
1015
|
fi
|
1018
|
|
-chroot "$rootdir" apt-get install -y sudo git dialog toilet build-essential
|
|
1016
|
+chroot "$rootdir" apt-get install -y sudo git dialog build-essential
|
1019
|
1017
|
chroot "$rootdir" apt-get install -y avahi-daemon avahi-utils avahi-discover avahi-autoipd
|
1020
|
1018
|
chroot "$rootdir" apt-get install -y iptables dnsutils net-tools network-manager iputils-ping
|
1021
|
1019
|
chroot "$rootdir" apt-get install -y libnss-mdns libnss-myhostname libnss-gw-name nano man ntp
|