aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-routes
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-06-18 21:23:18 +0000
committerBill Nottingham <notting@redhat.com>1999-06-18 21:23:18 +0000
commit365f962999cfc85d1f921c5f057be940421c1e57 (patch)
tree65a39628d623c6d1a0e07d988fb00d6cf77130d9 /sysconfig/network-scripts/ifup-routes
parenta5a94f762b8e72693a58e08d383aed4b45170c21 (diff)
downloadinitscripts-365f962999cfc85d1f921c5f057be940421c1e57.tar
initscripts-365f962999cfc85d1f921c5f057be940421c1e57.tar.gz
initscripts-365f962999cfc85d1f921c5f057be940421c1e57.tar.bz2
initscripts-365f962999cfc85d1f921c5f057be940421c1e57.tar.xz
initscripts-365f962999cfc85d1f921c5f057be940421c1e57.zip
remove commented-out linuxconf support ;)r4-21
Diffstat (limited to 'sysconfig/network-scripts/ifup-routes')
-rwxr-xr-xsysconfig/network-scripts/ifup-routes21
1 files changed, 7 insertions, 14 deletions
diff --git a/sysconfig/network-scripts/ifup-routes b/sysconfig/network-scripts/ifup-routes
index b623cfd9..bcd8ac3b 100755
--- a/sysconfig/network-scripts/ifup-routes
+++ b/sysconfig/network-scripts/ifup-routes
@@ -7,18 +7,11 @@ if [ "$1" = "" ]; then
exit 1
fi
-# don't run linuxconf if /usr isn't there
-#if [ -x /bin/linuxconf -a -f /usr/lib/libncurses.so.4.2 ] ; then
-# linuxconf --hint routing "$1" | while read args; do
-# /sbin/route $args
-# done
-#else
- if [ ! -f /etc/sysconfig/static-routes ]; then
- exit 0
- fi
+if [ ! -f /etc/sysconfig/static-routes ]; then
+ exit 0
+fi
- #note the trailing space in the grep gets rid of aliases
- grep "^$1 " /etc/sysconfig/static-routes | while read device args; do
- /sbin/route add -$args $device
- done
-#fi
+#note the trailing space in the grep gets rid of aliases
+grep "^$1 " /etc/sysconfig/static-routes | while read device args; do
+ /sbin/route add -$args $device
+done