From 16f7810f11cbf74e433f74beb95f9861e4e56fa1 Mon Sep 17 00:00:00 2001 From: Thomas Huehn Date: Fri, 26 Apr 2013 09:14:46 +0200 Subject: [PATCH] [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. --- olsrd/files/olsrd.init | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/olsrd/files/olsrd.init b/olsrd/files/olsrd.init index 7ffe33c..f4641aa 100644 --- a/olsrd/files/olsrd.init +++ b/olsrd/files/olsrd.init @@ -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 -- 2.30.2