From 5abd5052d0b0651d9397c1b2f730727da39d829b Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 11 Dec 2005 21:46:27 +0000 Subject: [PATCH] use a subshell and redirect stdout,stderr in ifup.pppoe and ifup.pptp (fixes #57) SVN-Revision: 2618 --- openwrt/package/ppp/files/ifup.pppoe | 4 ++-- openwrt/package/pptp/files/ifup.pptp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/openwrt/package/ppp/files/ifup.pppoe b/openwrt/package/ppp/files/ifup.pppoe index bf1fa1f792..82ab86c7a9 100644 --- a/openwrt/package/ppp/files/ifup.pppoe +++ b/openwrt/package/ppp/files/ifup.pppoe @@ -12,7 +12,7 @@ for module in slhc ppp_generic pppox pppoe; do /sbin/insmod $module 2>&- >&- done -while :; do +(while :; do IFNAME=$(nvram get pppoe_ifname) USERNAME=$(nvram get ppp_username) PASSWORD=$(nvram get ppp_passwd) @@ -46,4 +46,4 @@ while :; do $DEMAND \ $KEEPALIVE \ nic-$IFNAME -done & +done 2>&1 >/dev/null ) & diff --git a/openwrt/package/pptp/files/ifup.pptp b/openwrt/package/pptp/files/ifup.pptp index 71018536ca..daede50ba6 100644 --- a/openwrt/package/pptp/files/ifup.pptp +++ b/openwrt/package/pptp/files/ifup.pptp @@ -10,7 +10,7 @@ for module in slhc ppp_generic ppp_async ip_gre; do /sbin/insmod $module 2>&- >&- done -while :; do +(while :; do PPTP_PROTO="$(nvram get pptp_proto)" [ "$PPTP_PROTO" = "static" ] || PPTP_PROTO="" PPTP_PROTO="${PPTP_PROTO:-dhcp}" @@ -52,5 +52,5 @@ while :; do mru $MTU \ $DEMAND \ $KEEPALIVE -done & +done 2>&1 >/dev/null ) & -- 2.30.2