mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-09-10 18:34:18 +08:00
🐶 Sync 2026-08-11 02:49:26
This commit is contained in:
@@ -10,7 +10,7 @@ LUCI_DEPENDS:=+smscontrol
|
||||
# Version: <major>.<minor>.<patch>
|
||||
PKG_VERSION:=0.2.0
|
||||
|
||||
PKG_RELEASE:=3
|
||||
PKG_RELEASE:=4
|
||||
|
||||
LUCI_TITLE:=LuCI utility to remote control via SMS
|
||||
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
[ ! -f "/usr/share/ucitrack/luci-app-smscontrol.json" ] && {
|
||||
cat > /usr/share/ucitrack/luci-app-smscontrol.json << EEOF
|
||||
{
|
||||
"config": "smscontrol",
|
||||
"init": "smscontrol"
|
||||
}
|
||||
EEOF
|
||||
}
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
delete ucitrack.@smscontrol[-1]
|
||||
add ucitrack smscontrol
|
||||
set ucitrack.@smscontrol[-1].init=smscontrol
|
||||
commit ucitrack
|
||||
EOF
|
||||
|
||||
rm -f /tmp/luci-indexcache
|
||||
exit 0
|
||||
Reference in New Issue
Block a user