From af1f72a7a47caeeabe7bf68cda53660160abdeaa Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 24 Nov 2015 10:51:48 +0000 Subject: [PATCH] Show generated password using dialog --- src/freedombone-image-customise | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/src/freedombone-image-customise b/src/freedombone-image-customise index dfc26909..2e805daf 100755 --- a/src/freedombone-image-customise +++ b/src/freedombone-image-customise @@ -220,19 +220,6 @@ EOF cat >> $rootdir/root/.bashrc <> $rootdir/root/.bashrc echo ' NEW_USER_PASSWORD=$(cat ~/login.txt)' >> $rootdir/root/.bashrc @@ -245,14 +232,9 @@ EOF echo ' NEW_USER_PASSWORD="$(openssl rand -base64 12 | cut -c1-10)"' >> $rootdir/root/.bashrc echo ' fi' >> $rootdir/root/.bashrc echo ' echo -n "${NEW_USER_PASSWORD}" > ~/login.txt' >> $rootdir/root/.bashrc - echo ' echo " $NEW_USER_PASSWORD"' >> $rootdir/root/.bashrc - + echo ' dialog --backtitle "Freedombone initial setup process" --title "New Password" --msgbox "This is your new password. Use it whenever you wish to ssh into this system.\n\n $NEW_USER_PASSWORD\n\nPlease take a moment to copy the above password into a password manager or write it down somewhere." 12 50' >> $rootdir/root/.bashrc + cat >> $rootdir/root/.bashrc <