23 lines
378 B
Bash
Executable File
23 lines
378 B
Bash
Executable File
#!/bin/sh /etc/rc.common
|
|
|
|
START=98
|
|
USE_PROCD=1
|
|
|
|
start_service() {
|
|
include /lib/functions
|
|
|
|
local meshes
|
|
|
|
add_mesh() {
|
|
meshes="$meshes $1"
|
|
}
|
|
|
|
config_load batman-adv
|
|
config_foreach add_mesh 'mesh'
|
|
|
|
procd_open_instance
|
|
procd_set_param command /usr/sbin/batman-adv-visdata $meshes
|
|
procd_set_param respawn ${threshold:-20} ${timeout:-5} ${retry:-3}
|
|
procd_close_instance
|
|
}
|