Browse Source

Add user menu

Bob Mottram 9 years ago
parent
commit
1dff37ebc9
2 changed files with 9 additions and 0 deletions
  1. 4
    0
      src/freedombone
  2. 5
    0
      src/freedombone-adduser

+ 4
- 0
src/freedombone View File

@@ -10224,6 +10224,10 @@ function install_final {
10224 10224
         echo $"See /home/$MY_USERNAME/README for post-installation instructions."
10225 10225
         echo ''
10226 10226
     fi
10227
+    # add user menu on ssh login
10228
+    if ! grep -q 'control' /home/$MYUSERNAME/.bashrc; then
10229
+        echo 'control' >> /home/$MYUSERNAME/.bashrc
10230
+    fi
10227 10231
     if [ ! -f $IMAGE_PASSWORD_FILE ]; then
10228 10232
         reboot
10229 10233
     fi

+ 5
- 0
src/freedombone-adduser View File

@@ -265,6 +265,11 @@ fi
265 265
 #    export OC_PASS=""
266 266
 #fi
267 267
 
268
+# add user menu on ssh login
269
+if ! grep -q 'control' /home/$MYUSERNAME/.bashrc; then
270
+    echo 'control' >> /home/$MYUSERNAME/.bashrc
271
+fi
272
+
268 273
 clear
269 274
 echo $"New user $MY_USERNAME was created"
270 275
 if [ $SIP_EXTENSION ]; then