]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
- get REALDEVICE and use it for setting up the routes
authorJacek Konieczny <jajcus@pld-linux.org>
Fri, 21 Apr 2000 17:47:49 +0000 (17:47 +0000)
committerJacek Konieczny <jajcus@pld-linux.org>
Fri, 21 Apr 2000 17:47:49 +0000 (17:47 +0000)
svn-id: @726

sysconfig/network-scripts/ifup-routes

index eb39072d57f577b4954b313d2306475993935d6a..5f4d7a9b1fb22cd9f1f8899ce514d80943ba84ab 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-#      $Id: ifup-routes,v 1.7 2000/04/06 12:39:45 mkochano Exp $
+#      $Id: ifup-routes,v 1.8 2000/04/21 17:47:49 jajcus Exp $
 #
 # adds static routes which go through device $DEVICE
 
@@ -19,7 +19,10 @@ cd /etc/sysconfig/network-scripts
 CONFIG=$1
 source_config
 
+get_ppp_device_and_pid
+
 # note the trailing white space character in the grep gets rid of aliases
-grep "^$DEVNAME[[:blank:]]" /etc/sysconfig/static-routes | while read device args; do
-       /sbin/ip route add $args dev $device
+grep "^$DEVICE[[:blank:]]" /etc/sysconfig/static-routes | while read device args; do
+       /sbin/ip route add $args dev $REALDEVICE
 done
+
This page took 0.152327 seconds and 4 git commands to generate.