olsrd: fix missing UCI_CONF_NAME
In procd there is no UCI_CONF_NAME env variable anymore. Therefor call olsrd_generate_config() explicitly with this variable.
This commit is contained in:
parent
a92eb8e2de
commit
43bdddbc5d
3 changed files with 5 additions and 0 deletions
|
@ -757,6 +757,7 @@ olsrd_setup_smartgw_rules() {
|
|||
}
|
||||
|
||||
olsrd_generate_config() {
|
||||
UCI_CONF_NAME="$1"
|
||||
SYSTEM_HOSTNAME=
|
||||
SYSTEM_LAT=
|
||||
SYSTEM_LON=
|
||||
|
|
|
@ -9,6 +9,8 @@ CONF=/var/etc/olsrd.conf
|
|||
OLSRD=olsrd
|
||||
|
||||
start_service() {
|
||||
olsrd_generate_config $OLSRD
|
||||
|
||||
procd_open_instance
|
||||
|
||||
procd_set_param command /usr/sbin/olsrd -f $CONF -nofork
|
||||
|
|
|
@ -9,6 +9,8 @@ CONF=/var/etc/olsrd6.conf
|
|||
OLSRD=olsrd6
|
||||
|
||||
start_service() {
|
||||
olsrd_generate_config $OLSRD
|
||||
|
||||
procd_open_instance
|
||||
|
||||
procd_set_param command /usr/sbin/olsrd -f $CONF -nofork
|
||||
|
|
Loading…
Reference in a new issue