Don't reboot on Armbian in order to apply post install tweak

This commit is contained in:
Gauthier Provost 2021-02-24 18:02:25 +08:00
parent a9bc5d258f
commit dea8880ccf

View File

@ -31,6 +31,7 @@ declare -i cfg=0
declare -i ipv6=0 declare -i ipv6=0
declare -i skipFlash=0 declare -i skipFlash=0
declare -i skipNet=0 declare -i skipNet=0
declare -i isArmbian=0
declare -i version declare -i version
declare -l codename declare -l codename
@ -60,6 +61,7 @@ export LANG=C.UTF-8
if [ -f /etc/armbian-release ]; then if [ -f /etc/armbian-release ]; then
. /etc/armbian-release . /etc/armbian-release
isArmbian=1
fi fi
while getopts "fhin" opt; do while getopts "fhin" opt; do
@ -536,9 +538,12 @@ if [ ${version} -gt 4 ] && [ ${skipNet} -ne 1 ]; then
# create config files # create config files
${confCmd} ${network} ${confCmd} ${network}
echo "Network config files created."
echo "Network config files created. Rebooting..." if [ ${isArmbian} -ne 1 ]; then
echo "Rebooting..."
reboot reboot
fi
else else
echo "It is recommended to reboot and then setup the network adapter in the openmediavault web interface." echo "It is recommended to reboot and then setup the network adapter in the openmediavault web interface."
fi fi