diff --git a/src/freedombone-image-customise b/src/freedombone-image-customise index 282d008c..85cd58f2 100755 --- a/src/freedombone-image-customise +++ b/src/freedombone-image-customise @@ -408,6 +408,9 @@ EOF END_MESSAGE2=$'\nYour system has now installed\n\nPress any key to reboot and begin using it' END_MESSAGE_HEIGHT=12 fi + echo " if [ -f /root/${PROJECT_NAME}-wifi.cfg ]; then" >> $rootdir/root/.bashrc + echo " ${PROJECT_NAME}-wifi" >> $rootdir/root/.bashrc + echo ' fi' >> $rootdir/root/.bashrc echo " dialog --title '$END_MESSAGE1' --msgbox \"$END_MESSAGE2\" ${END_MESSAGE_HEIGHT} 60" >> $rootdir/root/.bashrc echo ' reboot' >> $rootdir/root/.bashrc echo ' fi' >> $rootdir/root/.bashrc diff --git a/src/freedombone-utils-final b/src/freedombone-utils-final index 3656160d..54b91516 100755 --- a/src/freedombone-utils-final +++ b/src/freedombone-utils-final @@ -65,6 +65,9 @@ function install_final { echo 'control' >> /home/$MY_USERNAME/.bashrc fi if [ ! -f $IMAGE_PASSWORD_FILE ]; then + if [ -f /root/${PROJECT_NAME}-wifi.cfg ]; then + ${PROJECT_NAME}-wifi + fi reboot fi }