[PATCH] fix olsr.init script function olsrd_write_plparam() as it wrongly removes...
authorThomas Huehn <thomas@net.t-labs.tu-berlin.de>
Fri, 26 Apr 2013 07:14:46 +0000 (09:14 +0200)
committerBastian Bittorf <bittorf@bluebottle.com>
Fri, 26 Apr 2013 07:14:46 +0000 (09:14 +0200)
olsrd/files/olsrd.init

index 7ffe33c12a476cc06e461b6a385ced7eaeb88a7c..f4641aa8eab1a391ecbf69a1813d5cca7bf82196 100644 (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