mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
horst: Update to version 5.1 and add init script
Update to latest stable version and add init script and config file to start horst in server mode as a service. Signed-off-by: Bruno Randolf <br1@einfach.org>
This commit is contained in:
Executable
+22
@@ -0,0 +1,22 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=94
|
||||
|
||||
USE_PROCD=1
|
||||
PROG=/usr/sbin/horst
|
||||
|
||||
start_service() {
|
||||
config_load horst
|
||||
config_get dis "init" 'disabled' '0'
|
||||
[ "$dis" == "0" ] || exit
|
||||
|
||||
config_get intf "init" 'interface' 'wlan0'
|
||||
config_get scan "init" 'scan' '0'
|
||||
[ "$scan" == "0" ] && scan='' || scan="-s"
|
||||
|
||||
procd_open_instance
|
||||
procd_set_param command $PROG -q -i $intf $scan -N
|
||||
procd_set_param netdev $intf
|
||||
procd_set_param respawn
|
||||
procd_close_instance
|
||||
}
|
||||
Reference in New Issue
Block a user