15 lines
306 B
Diff
15 lines
306 B
Diff
--- /dev/null
|
|
+++ b/luci-app-autoreboot/root/etc/uci-defaults/99-autoreboot
|
|
@@ -0,0 +1,11 @@
|
|
+#!/bin/sh
|
|
+
|
|
+uci -q batch <<-EOF >/dev/null
|
|
+ delete ucitrack.@autoreboot[-1]
|
|
+ add ucitrack autoreboot
|
|
+ set ucitrack.@autoreboot[-1].init=autoreboot
|
|
+ commit ucitrack
|
|
+EOF
|
|
+
|
|
+rm -f /tmp/luci-indexcache
|
|
+exit 0
|