drop the user to a shell with user pi if they exit for whatever reason

This commit is contained in:
Alex Bradbury 2012-06-17 13:58:44 +01:00
parent 265e7a5326
commit 23f9a79fa0
1 changed files with 2 additions and 1 deletions

View File

@ -13,5 +13,6 @@
if [ $(id -u) -ne 0 ]; then
printf "\nNOTICE: the software on this Raspberry Pi has not been fully configured. Please run 'sudo raspi-config'\n\n"
else
which raspi-config && exec raspi-config
raspi-config
exec login -f pi
fi