[PATCH] fix olsr.init script function olsrd_write_plparam() as it wrongly removes dashes. olsrd deamon did not start when the nameservice plugin was active.

This commit is contained in:
Thomas Huehn 2013-04-26 09:14:46 +02:00 committed by Bastian Bittorf
parent a8d42c7b2c
commit 16f7810f11
1 changed files with 4 additions and 1 deletions

View File

@ -153,8 +153,11 @@ olsrd_write_plparam() {
return 1
fi
oldIFS="$IFS"; IFS='-_'; set -- $option; IFS="$oldIFS"
oldIFS="$IFS"
IFS='-_'
set -- $option
option="$*"
IFS="$oldIFS"
_option="$option"
if [ "$option" = 'hosts' ]; then