From e4088390f4a3d8f3d3a59befb8b571b07826f523 Mon Sep 17 00:00:00 2001 From: Florian La Roche Date: Wed, 26 Jun 2002 10:37:41 +0000 Subject: - set PATH also in /etc/sysconfig/network-scripts/network-functions --- ppp/ip-down | 7 +++---- ppp/ip-up | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) (limited to 'ppp') diff --git a/ppp/ip-down b/ppp/ip-down index 70f1aa8f..3c86f2a6 100644 --- a/ppp/ip-down +++ b/ppp/ip-down @@ -1,14 +1,13 @@ #!/bin/bash - # This file should not be modified -- make local changes to # /etc/ppp/ip-down.local instead -LOGDEVICE=$6 -REALDEVICE=$1 - PATH=/sbin:/usr/sbin:/bin:/usr/bin export PATH +LOGDEVICE=$6 +REALDEVICE=$1 + [ -x /etc/ppp/ip-down.local ] && /etc/ppp/ip-down.local "$@" /etc/sysconfig/network-scripts/ifdown-post ifcfg-${LOGDEVICE} diff --git a/ppp/ip-up b/ppp/ip-up index 47517489..3b73814f 100644 --- a/ppp/ip-up +++ b/ppp/ip-up @@ -1,14 +1,13 @@ #!/bin/bash - # This file should not be modified -- make local changes to # /etc/ppp/ip-up.local instead -LOGDEVICE=$6 -REALDEVICE=$1 - PATH=/sbin:/usr/sbin:/bin:/usr/bin export PATH +LOGDEVICE=$6 +REALDEVICE=$1 + [ -f /etc/sysconfig/network-scripts/ifcfg-${LOGDEVICE} ] && /etc/sysconfig/network-scripts/ifup-post ifcfg-${LOGDEVICE} [ -x /etc/ppp/ip-up.local ] && /etc/ppp/ip-up.local "$@" -- cgit v1.2.1