Skip to content

Commit

Permalink
force reboot after first install on RaspberryMatic
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbyquaker committed Oct 3, 2019
1 parent 706cf60 commit 904dfe0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion addon_files/update_script
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down Expand Up @@ -166,4 +168,4 @@ if [ -f /usr/bin/monit ]; then
fi

sync
exit 0
exit $EXITCODE

0 comments on commit 904dfe0

Please sign in to comment.