pentoo-livecd: update livecd-setpass for a pretty /etc/issue

This commit is contained in:
Rick Farina (Zero_Chaos) 2016-09-01 00:05:16 -04:00
parent f26a1a5e23
commit af99ed62d4
No known key found for this signature in database
GPG key ID: A5DD1427DD11F94A
2 changed files with 6 additions and 3 deletions

View file

@ -28,10 +28,13 @@ if ! sudo grep -q "{changeuser}:!" /etc/shadow; then
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" | sudo tee /etc/issue > /dev/null
if [ -r /etc/issue.pentoo.logo ]; then
sudo cp /etc/issue.pentoo.logo /etc/issue
else
sudo cp /etc/issue /etc/issue.old
printf "Welcome to Pentoo Live!\n" | sudo tee /etc/issue > /dev/null
fi
printf "Username is \"pentoo\", password is whatever you set at boot.\n" | sudo tee -a /etc/issue > /dev/null
cat /etc/issue.old | sudo tee -a /etc/issue > /dev/null
#we have set the password, pull livecd-setpass out of bashrc, our work is done
grep -v livecd-setpass ~/.bashrc > .bashrc_setpass_temp