mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-09-11 19:05:11 +08:00
22 lines
383 B
Bash
22 lines
383 B
Bash
#!/bin/sh
|
|
[ ! -f "/usr/share/ucitrack/luci-app-ghttpd.json" ] && {
|
|
cat > /usr/share/ucitrack/luci-app-ghttpd.json << EEOF
|
|
{
|
|
"config": "ghttpd",
|
|
"init": "ghttpd"
|
|
}
|
|
EEOF
|
|
}
|
|
|
|
uci -q batch <<-EOF >/dev/null
|
|
delete ucitrack.@ghttpd[-1]
|
|
add ucitrack ghttpd
|
|
set ucitrack.@ghttpd[-1].init=ghttpd
|
|
commit ucitrack
|
|
EOF
|
|
|
|
/etc/init.d/ghttpd enable
|
|
/etc/init.d/ghttpd start
|
|
|
|
exit 0
|