From 23f9a79fa08206e7447c99f1bf8c1170b3acecec Mon Sep 17 00:00:00 2001 From: Alex Bradbury Date: Sun, 17 Jun 2012 13:58:44 +0100 Subject: [PATCH] drop the user to a shell with user pi if they exit for whatever reason --- sample_profile_d.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sample_profile_d.sh b/sample_profile_d.sh index 1d96f76..17ad7bd 100644 --- a/sample_profile_d.sh +++ b/sample_profile_d.sh @@ -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