mirror of
https://github.com/gSpotx2f/luci-app-internet-detector.git
synced 2025-12-13 15:06:50 +03:00
Luaposix getopt for positional arguments
This commit is contained in:
@@ -10,7 +10,7 @@ run_instance() {
|
||||
config_get enabled "$1" enabled "0"
|
||||
if [ $enabled = "1" ]; then
|
||||
procd_open_instance "$1"
|
||||
procd_set_param command "$PROG" "nodaemon" "$1"
|
||||
procd_set_param command "$PROG" "-a" "nodaemon" "-i" "$1"
|
||||
procd_close_instance
|
||||
fi
|
||||
}
|
||||
@@ -24,7 +24,7 @@ start_service() {
|
||||
}
|
||||
|
||||
stop_service() {
|
||||
$PROG stop
|
||||
$PROG -a stop
|
||||
}
|
||||
|
||||
reload_service() {
|
||||
|
||||
Reference in New Issue
Block a user