Add user menu

This commit is contained in:
Bob Mottram 2016-02-25 14:21:07 +00:00
parent db4b04d2b2
commit 1dff37ebc9
2 changed files with 9 additions and 0 deletions

View File

@ -10224,6 +10224,10 @@ function install_final {
echo $"See /home/$MY_USERNAME/README for post-installation instructions." echo $"See /home/$MY_USERNAME/README for post-installation instructions."
echo '' echo ''
fi 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 if [ ! -f $IMAGE_PASSWORD_FILE ]; then
reboot reboot
fi fi

View File

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