pentoo-livecd: livecd-setpass stick sudo where it belongs

This commit is contained in:
Rick Farina (Zero_Chaos) 2016-08-25 13:18:59 -04:00
parent b1ec998c70
commit 26cfcd41d7
No known key found for this signature in database
GPG key ID: A5DD1427DD11F94A

View file

@ -29,9 +29,9 @@ if ! sudo grep -q "{changeuser}:!" /etc/shadow; then
#update /etc/issue to remind users to log in as pentoo
sudo mv /etc/issue /etc/issue.old
sudo printf "Welcome to Pentoo Live!\n" | tee /etc/issue
sudo printf "Username is \"pentoo\", password is whatever you set at boot.\n\n" | tee -a /etc/issue
sudo cat /etc/issue.old | tee -a /etc/issue
printf "Welcome to Pentoo Live!\n" | sudo tee /etc/issue
printf "Username is \"pentoo\", password is whatever you set at boot.\n\n" | sudo tee -a /etc/issue
cat /etc/issue.old | sudo tee -a /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