From 1dff37ebc9f8356d180f2b98543add36134f522b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 25 Feb 2016 14:21:07 +0000 Subject: [PATCH] Add user menu --- src/freedombone | 4 ++++ src/freedombone-adduser | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/src/freedombone b/src/freedombone index e3b9db01..108bde2b 100755 --- a/src/freedombone +++ b/src/freedombone @@ -10224,6 +10224,10 @@ function install_final { echo $"See /home/$MY_USERNAME/README for post-installation instructions." echo '' fi + # add user menu on ssh login + if ! grep -q 'control' /home/$MYUSERNAME/.bashrc; then + echo 'control' >> /home/$MYUSERNAME/.bashrc + fi if [ ! -f $IMAGE_PASSWORD_FILE ]; then reboot fi diff --git a/src/freedombone-adduser b/src/freedombone-adduser index a4b9aab8..4884f717 100755 --- a/src/freedombone-adduser +++ b/src/freedombone-adduser @@ -265,6 +265,11 @@ fi # export OC_PASS="" #fi +# add user menu on ssh login +if ! grep -q 'control' /home/$MYUSERNAME/.bashrc; then + echo 'control' >> /home/$MYUSERNAME/.bashrc +fi + clear echo $"New user $MY_USERNAME was created" if [ $SIP_EXTENSION ]; then