]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
- fix support for src addresses option
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 21 Aug 2002 21:30:42 +0000 (21:30 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 21 Aug 2002 21:30:42 +0000 (21:30 +0000)
svn-id: @1038

sysconfig/network-scripts/functions.network

index 11f5edbbd806aee5583b82f698173c39a65e5ea2..567d377d5d36f263fc5e9b36797e7e4da856a08d 100644 (file)
@@ -1,5 +1,5 @@
 #
-# $Id: functions.network,v 1.3 2002/07/13 16:25:07 misiek Exp $
+# $Id: functions.network,v 1.4 2002/08/21 21:30:42 misiek Exp $
 # 
 # This is not a shell script; it provides functions to network scripts
 # that source it.
@@ -194,11 +194,11 @@ if [ -n "${IP6_PRIM_IF}" ] ; then
 fi
 if [ -n "${IP4_SRC_IF}" ] ; then
        eval IP4SRCADDR="\$IPADDR${IP4_SRC_IF}"
-       IP4SRCADDR="src $IP4SRCADDR"
+       IP4SRCADDR=$(echo ${IP4SRCADDR} | awk ' { gsub(/\/.*/,NIL); print "src " $0; } ')
 fi
 if [ -n "${IP6_SRC_IF}" ] ; then
        eval IP6SRCADDR="\$IPADDR${IP6_SRC_IF}"
-       IP6SRCADDR="src $IP6SRCADDR"
+       IP6SRCADDR=$(echo ${IP6SRCADDR} | awk ' { gsub(/\/.*/,NIL); print "src " $0; } ')
 fi
 
 # new rc-scripts 0.4.x option
This page took 0.04407 seconds and 4 git commands to generate.