mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-11-22 05:27:24 +00:00
add unattended flag to upgrade script
This commit is contained in:
parent
69a2f38644
commit
c0b10e837e
@ -131,6 +131,13 @@ reboot
|
||||
|
||||
}
|
||||
|
||||
if [[ "$1" == "unattended" ]]; then
|
||||
echo "Unattended upgrade!"
|
||||
rm -rf /opt/Upgrade
|
||||
sync
|
||||
setup
|
||||
else
|
||||
|
||||
if [[ -e /tmp/dbgflag ]]; then
|
||||
upgrade_mode_start
|
||||
else
|
||||
@ -158,12 +165,11 @@ read -r -p "${1:-wz_mini, this will download the latest version from github and
|
||||
else
|
||||
setup
|
||||
fi
|
||||
|
||||
;;
|
||||
*)
|
||||
echo "User declined system update, exit"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user