wifidog.init (491B)
1 #!/bin/sh /etc/rc.common 2 # Copyright (C) 2006 OpenWrt.org 3 START=65 4 5 USE_PROCD=1 6 7 EXTRA_COMMANDS="status" 8 EXTRA_HELP=" status Print the status of the service" 9 10 start_service() { 11 procd_open_instance 12 # -s: log to syslog 13 # -f: run in foreground 14 procd_set_param command /usr/bin/wifidog -s -f 15 procd_set_param respawn # respawn automatically if something died 16 procd_set_param file /etc/wifidog.conf 17 procd_close_instance 18 } 19 20 status() { 21 /usr/bin/wdctl status 22 }