@@ -64,6 +64,13 @@ if [ "$REQUEST_METHOD" == "POST" ] ; then
fi
fi
+ uci -q set "fff.autorestart=settings"
+ if [ "$POST_autorestart_enabled" == "on" ] ; then
+ uci -q set "fff.autorestart.enabled=1"
+ else
+ uci -q set "fff.autorestart.enabled=0"
+ fi
+
uci commit
/usr/sbin/applysimpletc
@@ -92,6 +99,11 @@ if [ "$(uci -q get 'fff.notifyupdate.resetonupgrade')" == "0" ] ; then # not set
else
upgrade_reset_checked="$chkd"
fi
+if [ "$(uci -q get 'fff.autorestart.enabled')" == "0" ] ; then # not set=1
+ autorestart_checked=""
+else
+ autorestart_checked="$chkd"
+fi
%>
<% show_msg %>
<form method="post">
@@ -148,6 +160,9 @@ fi
</td></tr>
<% fi %>
+ <tr><th>Auto-restart enabled:</th><td colspan="2">
+ <input type="checkbox" name="autorestart_enabled" <%= ${autorestart_checked} %>/>
+ </td></tr>
</table>
</fieldset>
</td></tr>