aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
authorFlorian La Roche <laroche@redhat.com>2002-06-26 10:37:41 +0000
committerFlorian La Roche <laroche@redhat.com>2002-06-26 10:37:41 +0000
commite4088390f4a3d8f3d3a59befb8b571b07826f523 (patch)
treee3183dc035380304b4bdfb43e3e6196a501187eb /sysconfig
parent7f968d6ce159032e5f170dcedefad83894bfb95e (diff)
downloadinitscripts-e4088390f4a3d8f3d3a59befb8b571b07826f523.tar
initscripts-e4088390f4a3d8f3d3a59befb8b571b07826f523.tar.gz
initscripts-e4088390f4a3d8f3d3a59befb8b571b07826f523.tar.bz2
initscripts-e4088390f4a3d8f3d3a59befb8b571b07826f523.tar.xz
initscripts-e4088390f4a3d8f3d3a59befb8b571b07826f523.zip
- set PATH also in /etc/sysconfig/network-scripts/network-functions
Diffstat (limited to 'sysconfig')
-rwxr-xr-xsysconfig/network-scripts/ifdown-ipv64
-rwxr-xr-xsysconfig/network-scripts/ifdown-post2
-rwxr-xr-xsysconfig/network-scripts/ifdown-ppp2
-rwxr-xr-xsysconfig/network-scripts/ifdown-sl2
-rwxr-xr-xsysconfig/network-scripts/ifup-ctc2
-rw-r--r--sysconfig/network-scripts/ifup-escon2
-rwxr-xr-xsysconfig/network-scripts/ifup-iucv2
-rwxr-xr-xsysconfig/network-scripts/ifup-plip2
-rwxr-xr-xsysconfig/network-scripts/ifup-plusb2
-rw-r--r--sysconfig/network-scripts/network-functions4
10 files changed, 5 insertions, 19 deletions
diff --git a/sysconfig/network-scripts/ifdown-ipv6 b/sysconfig/network-scripts/ifdown-ipv6
index 41026b5b..f40d6b21 100755
--- a/sysconfig/network-scripts/ifdown-ipv6
+++ b/sysconfig/network-scripts/ifdown-ipv6
@@ -55,9 +55,7 @@ REALDEVICE=`echo ${DEVICE} | sed 's/:.*//g'`
# Test whether IPv6 should be configured, else stop
[ "${NETWORKING_IPV6}" = "yes" ] || exit 0
-if [ ! -f /etc/sysconfig/network-scripts/network-functions-ipv6 ]; then
- exit 1
-fi
+[ -f /etc/sysconfig/network-scripts/network-functions-ipv6 ] || exit 1
# Source IPv6 helper functions
. /etc/sysconfig/network-scripts/network-functions-ipv6
diff --git a/sysconfig/network-scripts/ifdown-post b/sysconfig/network-scripts/ifdown-post
index 04d516d5..66ea3bdf 100755
--- a/sysconfig/network-scripts/ifdown-post
+++ b/sysconfig/network-scripts/ifdown-post
@@ -2,8 +2,6 @@
# This should be called whenever an interface goes down, not just when
# it is brought down explicitly.
-PATH=/sbin:/usr/sbin:/bin:/usr/bin
-
cd /etc/sysconfig/network-scripts
. network-functions
diff --git a/sysconfig/network-scripts/ifdown-ppp b/sysconfig/network-scripts/ifdown-ppp
index 1f384e19..4d8cfb75 100755
--- a/sysconfig/network-scripts/ifdown-ppp
+++ b/sysconfig/network-scripts/ifdown-ppp
@@ -1,7 +1,5 @@
#! /bin/bash
-PATH=/sbin:/usr/sbin:/bin:/usr/bin
-
cd /etc/sysconfig/network-scripts
. network-functions
diff --git a/sysconfig/network-scripts/ifdown-sl b/sysconfig/network-scripts/ifdown-sl
index c4d06b56..11d9e99d 100755
--- a/sysconfig/network-scripts/ifdown-sl
+++ b/sysconfig/network-scripts/ifdown-sl
@@ -1,7 +1,5 @@
#!/bin/bash
-PATH=/sbin:/usr/sbin:/bin:/usr/bin
-
cd /etc/sysconfig/network-scripts
. network-functions
diff --git a/sysconfig/network-scripts/ifup-ctc b/sysconfig/network-scripts/ifup-ctc
index 0653c7b4..09a64637 100755
--- a/sysconfig/network-scripts/ifup-ctc
+++ b/sysconfig/network-scripts/ifup-ctc
@@ -10,8 +10,6 @@
# alias ctc0 ctc
#
-PATH=/sbin:/usr/sbin:/bin:/usr/bin
-
cd /etc/sysconfig/network-scripts
. network-functions
diff --git a/sysconfig/network-scripts/ifup-escon b/sysconfig/network-scripts/ifup-escon
index 27d906d1..8cd1d83e 100644
--- a/sysconfig/network-scripts/ifup-escon
+++ b/sysconfig/network-scripts/ifup-escon
@@ -11,8 +11,6 @@
# alias escon0 ctc
#
-PATH=/sbin:/usr/sbin:/bin:/usr/bin
-
cd /etc/sysconfig/network-scripts
. network-functions
diff --git a/sysconfig/network-scripts/ifup-iucv b/sysconfig/network-scripts/ifup-iucv
index a1059c6f..e257d28a 100755
--- a/sysconfig/network-scripts/ifup-iucv
+++ b/sysconfig/network-scripts/ifup-iucv
@@ -10,8 +10,6 @@
# alias iucv0 netiucv
#
-PATH=/sbin:/usr/sbin:/bin:/usr/bin
-
cd /etc/sysconfig/network-scripts
. network-functions
diff --git a/sysconfig/network-scripts/ifup-plip b/sysconfig/network-scripts/ifup-plip
index 3c9ffb99..c7c6bb88 100755
--- a/sysconfig/network-scripts/ifup-plip
+++ b/sysconfig/network-scripts/ifup-plip
@@ -1,7 +1,5 @@
#!/bin/sh
-PATH=/sbin:/usr/sbin:/bin:/usr/bin
-
cd /etc/sysconfig/network-scripts
. network-functions
diff --git a/sysconfig/network-scripts/ifup-plusb b/sysconfig/network-scripts/ifup-plusb
index 84bdaba2..bec39d97 100755
--- a/sysconfig/network-scripts/ifup-plusb
+++ b/sysconfig/network-scripts/ifup-plusb
@@ -11,8 +11,6 @@
# alias plusb0 plusb
#
-PATH=/sbin:/usr/sbin:/bin:/usr/bin
-
cd /etc/sysconfig/network-scripts
. network-functions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index 9213cedd..cb56b09f 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -3,6 +3,10 @@
# This file is not a stand-alone shell script; it provides functions
# to network scripts that source it.
+# Set up a default search path.
+PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin"
+export PATH
+
need_config()
{
[ -f "${CONFIG}" ] || \