pentoo-livecd: update issue code, remove set pass when done

This commit is contained in:
Rick Farina (Zero_Chaos) 2016-08-25 12:50:39 -04:00
parent fc9f16c52d
commit ffb58a0502
No known key found for this signature in database
GPG key ID: A5DD1427DD11F94A
2 changed files with 10 additions and 3 deletions

View file

@ -21,12 +21,19 @@ done
printf "Remember your password, you will need it to log in as ${changeuser}\n"
if ! sudo grep -q "{changeuser}:!" /etc/shadow; then
# restore real inittab and tell init about it
if [ -r /etc/inittab.old ]; then
sudo mv /etc/inittab.old /etc/inittab
sudo init -q
fi
#update /etc/issue to remind users to log in as pentoo
sudo mv /etc/issue /etc/issue.old
printf "Welcome to Pentoo Live!\n" > /etc/issue
printf "Username is \"pentoo\", password is whatever you set at boot.\n\n" >> /etc/issue
cat /etc/issue.old >> /etc/issue
sudo printf "Welcome to Pentoo Live!\n" > /etc/issue
sudo printf "Username is \"pentoo\", password is whatever you set at boot.\n\n" >> /etc/issue
sudo cat /etc/issue.old >> /etc/issue
#we have set the password, pull livecd-setpass out of bashrc, our work is done
grep -v livecd-setpass ~/.bashrc > .bashrc_setpass_temp
mv .bashrc_setpass_temp ~/.bashrc
fi