Files
op-packages/ghttpd/files/ghttpd.uci-default
T

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