]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Fix red script for pptp connection
authorArne Fitzenreiter <arne_f@ipfire.org>
Tue, 30 Dec 2008 15:48:28 +0000 (16:48 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Tue, 30 Dec 2008 15:48:28 +0000 (16:48 +0100)
src/initscripts/init.d/networking/red

index caa857263ddc9c3e844d7d1ca502456bcfc83d08..9b4ffe8a07696e3f5c1967f145845af28c42fb53 100644 (file)
@@ -330,7 +330,7 @@ case "${1}" in
                        
                        ### Run everything
                        #
-                       if [ "${METHOD}" == "PPPOE_PLUGIN" ]; then
+                       if [ "$TYPE" == "pppoe" ] && [ "${METHOD}" == "PPPOE_PLUGIN" ]; then
                                /usr/sbin/pppd $PPP_STD_OPTIONS $DEBUG $DEMAND >/dev/null 2>&1 &
                                evaluate_retval
                                # echo PLUGIN: /usr/sbin/pppd $PPP_STD_OPTIONS $DEBUG $DEMAND