Run the wifi command at the end of installation
This commit is contained in:
parent
bc62290f00
commit
8f37e72f04
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue