]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
Default route is forced only if DEFROUTE=yes (Witek Kręcicki <adasi/at/pld-linux...
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 24 May 2004 00:44:31 +0000 (00:44 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 24 May 2004 00:44:31 +0000 (00:44 +0000)
svn-id: @4120

sysconfig/network-scripts/ifup-ppp

index ed80fe40397727549855f68863c0b4d19f10911a..deb0b9b32a346d9fab33085135ce68765bcf0ca0 100755 (executable)
@@ -143,11 +143,13 @@ if is_yes "${ESCAPECHARS}"; then
 else
   opts="$opts asyncmap 00000000"
 fi
-if ! is_no "${DEFROUTE}"; then
+if is_yes "${DEFROUTE}"; then
   # pppd will no longer delete an existing default route
   # so we have to help it out a little here.
   ip route del 0/0 > /dev/null 2>&1
   opts="$opts defaultroute"
+elif ! is_no "${DEFROUTE}"; then
+  opts="$opts defaultroute"
 fi
 if ! is_no "${PEERDNS}"; then
   opts="$opts usepeerdns"
This page took 0.109222 seconds and 4 git commands to generate.