mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-07-27 18:41:15 +08:00
17 lines
340 B
Diff
17 lines
340 B
Diff
--- /dev/null
|
|
+++ b/luci-app-autoreboot/root/etc/uci-defaults/99-autoreboot
|
|
@@ -0,0 +1,13 @@
|
|
+#!/bin/sh
|
|
+
|
|
+[ ! -f "/usr/share/ucitrack/luci-app-autoreboot.json" ] && {
|
|
+ cat > /usr/share/ucitrack/luci-app-autoreboot.json << EEOF
|
|
+{
|
|
+ "config": "autoreboot",
|
|
+ "init": "autoreboot"
|
|
+}
|
|
+EEOF
|
|
+}
|
|
+
|
|
+rm -f /tmp/luci-indexcache
|
|
+exit 0
|