op-packages/3ginfo/files-html-old/etc/init.d/3ginfo
github-actions[bot] 32600acc60 🌴 Sync 2026-03-05 23:51:42
2026-03-05 23:51:42 +08:00

12 lines
279 B
Bash
Executable File

#!/bin/sh /etc/rc.common
# (c) 2010-2019 Cezary Jackiewicz <cezary@eko.one.pl>
START=99
start () {
PORT=$(uci -q get 3ginfo.@3ginfo[0].http_port)
[ -z $PORT ] && { PORT=81; }
uhttpd -c /usr/share/3ginfo/uhttpd.conf -h /usr/share/3ginfo/ -p 0.0.0.0:$PORT > /dev/null 2>&1
}