Skip to content
Snippets Groups Projects
Commit 06e72576 authored by Jan Kraus's avatar Jan Kraus Committed by Steffen Pankratz
Browse files

Added script parameter to sysupgrade Script


This makes automatic update via cron jobs possible.

Signed-off-by: default avatarJan Kraus <mayosemmel@gmail.com>
Reviewed-by: default avatarSteffen Pankratz <kratz00@gmx.de>
parent 23203334
No related branches found
No related tags found
No related merge requests found
include $(TOPDIR)/rules.mk
PKG_NAME:=fff-sysupgrade
PKG_VERSION:=0.0.1
PKG_RELEASE:=1
PKG_VERSION:=0.0.2
PKG_RELEASE:=2
PKG_BUILD_DIR:=$(BUILD_DIR)/fff-sysupgrade
......
......@@ -34,6 +34,10 @@ echo -ne "Firmware found on server: $VERSION\n"
if [ $VERSION -eq $FIRMWARE_VERSION ]; then
echo -ne "The installed firmware version is already the current version.\n\n"
if [ "$1" = "--script" ]; then
exit 1
fi
while true; do
echo -ne "Do you want to reinstall the current version? [y/N]\n"
read DO_UPDATE
......@@ -65,6 +69,10 @@ if [ $ret -ne 0 ]; then
rm -f ${FILE}*
exit 1
else
if [ "$1" = "--script" ]; then
echo -ne "\nStarting firmware upgrade. Don't touch me until I reboot.\n\n\n"
sysupgrade ${FILE}
fi
while true; do
read -p "sha256 sums correct. Should I start upgrading the firmware (y/N)? " yn
case $yn in
......
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