summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-02-05 02:24:20 +0000
committerChristian Pointner <equinox@anytun.org>2009-02-05 02:24:20 +0000
commit1d58f084b4566422dc26c4cbd410d5c99c61d374 (patch)
tree129221a81462224dfc98090d1b34d6c32257203e /etc
parentupdated md5 checksums @ openwrt makefiles (diff)
initscript clean up
Diffstat (limited to 'etc')
-rwxr-xr-xetc/init.d/uanytun2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/init.d/uanytun b/etc/init.d/uanytun
index f31d62b..3181525 100755
--- a/etc/init.d/uanytun
+++ b/etc/init.d/uanytun
@@ -28,7 +28,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/^/ --/' | sed 's/passphrase\s*\(.*\)/passphrase "\1"/' | xargs echo`
+ DAEMONARG=`sed 's/#.*//' < $CONFIG_DIR/$NAME/config | grep -e '\w' | sed 's/^/--/' | tr '\n' ' '`
$DAEMON --write-pid /var/run/uanytun.$NAME.pid $POSTUP \
$DAEMONOPTS $DAEMONARG || STATUS="FAILED"
else