Skip to content
Snippets Groups Projects
Commit 8f37e72f authored by Bob Mottram's avatar Bob Mottram
Browse files

Run the wifi command at the end of installation

parent bc62290f
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment