From 904dfe0d9aa192373b8823c3ad605f43fefc5e11 Mon Sep 17 00:00:00 2001 From: hobbyquaker Date: Thu, 3 Oct 2019 21:30:48 +0200 Subject: [PATCH] force reboot after first install on RaspberryMatic --- addon_files/update_script | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addon_files/update_script b/addon_files/update_script index 5b634ad2..1a339e23 100755 --- a/addon_files/update_script +++ b/addon_files/update_script @@ -4,6 +4,7 @@ ADDONS_DIR=/usr/local/addons RED_DIR=$ADDONS_DIR/redmatic CONF_DIR=/usr/local/etc/config WWW_DIR=$CONF_DIR/addons/www/redmatic +EXITCODE=10 mount | grep /usr/local 2>&1 >/dev/null if [ $? -eq 1 ]; then @@ -18,6 +19,7 @@ mkdir -p $CONF_DIR/lighttpd && chmod 755 $CONF_DIR/lighttpd # Stop service on update # if [ -f $CONF_DIR/rc.d/redmatic ]; then + EXITCODE=0 $CONF_DIR/rc.d/redmatic stop fi @@ -166,4 +168,4 @@ if [ -f /usr/bin/monit ]; then fi sync -exit 0 +exit $EXITCODE