From 6a8ac9ae7440df38dcc86b2900aa3032ba66d0db Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 5 Feb 2009 02:22:30 +0000 Subject: init script cleanup --- etc/init.d/anytun | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/init.d/anytun b/etc/init.d/anytun index 47dc330..740c77b 100755 --- a/etc/init.d/anytun +++ b/etc/init.d/anytun @@ -31,7 +31,7 @@ start_vpn () { if [ -f $CONFIG_DIR/$NAME/config ] ; then POSTUP='' test -f $CONFIG_DIR/$NAME/post-up.sh && POSTUP="-x $CONFIG_DIR/$NAME/post-up.sh" - DAEMONARG=`sed 's/#.*//' < $CONFIG_DIR/$NAME/config | grep -e '\w' | sed 's/^/ --/' | xargs echo` + DAEMONARG=`sed 's/#.*//' < $CONFIG_DIR/$NAME/config | grep -e '\w' | sed 's/^/--/' | tr '\n' ' '` $DAEMON --write-pid /var/run/anytun.$NAME.pid $POSTUP \ $DAEMONOPTS $DAEMONARG || STATUS="FAILED" else -- cgit v1.2.3