mirror of
https://github.com/brain-hackers/brain-config.git
synced 2024-12-22 12:10:07 +09:00
drop the user to a shell with user pi if they exit for whatever reason
This commit is contained in:
parent
265e7a5326
commit
23f9a79fa0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user