From 1dff37ebc9f8356d180f2b98543add36134f522b Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob.mottram@codethink.co.uk>
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 e3b9db01d..108bde2b1 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 a4b9aab89..4884f717e 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
-- 
GitLab