Run the wifi command at the end of installation

This commit is contained in:
Bob Mottram 2016-10-21 22:57:30 +01:00
parent bc62290f00
commit 8f37e72f04
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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
}