summaryrefslogtreecommitdiff
path: root/etc/init.d
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-02-05 02:22:30 +0000
committerChristian Pointner <equinox@anytun.org>2009-02-05 02:22:30 +0000
commit6a8ac9ae7440df38dcc86b2900aa3032ba66d0db (patch)
treea7c2a8dd2e260935e289116977f1e0299e97a134 /etc/init.d
parentrenamed /etc/defaults to /etc/default (diff)
init script cleanup
Diffstat (limited to 'etc/init.d')
-rwxr-xr-xetc/init.d/anytun2
1 files changed, 1 insertions, 1 deletions
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