From 658784e3955a7631f10b502f3a828ac12b5073c6 Mon Sep 17 00:00:00 2001 From: Miloslav Trmac Date: Mon, 20 Mar 2006 01:04:01 +0000 Subject: Provide the underlying device name to ip-up (and thus ifup-routes) for PPP devices (#92023) --- sysconfig/network-scripts/ifup-post | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'sysconfig/network-scripts/ifup-post') diff --git a/sysconfig/network-scripts/ifup-post b/sysconfig/network-scripts/ifup-post index cf07130b..54bc27f9 100755 --- a/sysconfig/network-scripts/ifup-post +++ b/sysconfig/network-scripts/ifup-post @@ -5,14 +5,22 @@ cd /etc/sysconfig/network-scripts [ -f ../network ] && . ../network +unset REALDEVICE +if [ "$1" = --realdevice ] ; then + REALDEVICE=$2 + shift 2 +fi + CONFIG=$1 source_config +[ -z "$REALDEVICE" ] && REALDEVICE=$DEVICE + if [ "$ISALIAS" = no ] ; then /etc/sysconfig/network-scripts/ifup-aliases ${DEVICE} ${CONFIG} fi -/etc/sysconfig/network-scripts/ifup-routes ${DEVICE} ${DEVNAME} +/etc/sysconfig/network-scripts/ifup-routes ${REALDEVICE} ${DEVNAME} if [ "$PEERDNS" != "no" -o -n "$RESOLV_MODS" -a "$RESOLV_MODS" != "no" ]; then -- cgit v1.2.1