forked from freifunk-franken/firmware
fff-uradvd: Add reload trigger for network
fff-uradvd depends on values stored in the uci network config. Therefore, a reload is required if the uci network config is modified. As fff-uradvd does not support reloads, and possibly changing values are given as command parameters, do a restart on procd reload. Signed-off-by: Fabian Bläse <fabian@blaese.de> Reviewed-by: Robert Langhammer <rlanghammer@web.de>
This commit is contained in:
parent
c2f80c9999
commit
1917c8a1df
|
@ -11,10 +11,16 @@ URADVD_BIN=/usr/sbin/uradvd
|
|||
|
||||
service_triggers()
|
||||
{
|
||||
procd_add_reload_trigger "fff-uradvd"
|
||||
procd_add_reload_trigger "fff-uradvd" "network"
|
||||
}
|
||||
|
||||
start_service() {
|
||||
procd_open_instance
|
||||
procd_set_param command "$URADVD_BIN" -i br-client -p $(uci get network.globals.ula_prefix)
|
||||
}
|
||||
|
||||
reload_service()
|
||||
{
|
||||
stop
|
||||
start
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user