blob: 59337ff53039c4179c4539103cca99f40090efe7 [file] [log] [blame]
#!bin/sh
reset
echo "Exiting petitboot. Type 'exit' to return."
echo "You may run 'pb-sos' to gather diagnostic data"
if [[ "$(id -u)" != "0" ]]; then
echo "" | sudo -S /bin/true 2&>1 >> /dev/null
if [[ $? = 0 ]]; then
echo "No password set, running as root. You may set a password in the System Configuration screen."
sudo -i
sudo -K
exit
fi
export PS1='$ '
else
export PS1='# '
fi