aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorFlorian La Roche <laroche@redhat.com>2002-06-26 10:03:56 +0000
committerFlorian La Roche <laroche@redhat.com>2002-06-26 10:03:56 +0000
commit0bb4cfc42fbb7e8edef7227c98cd3de041ca37d5 (patch)
treef44a8b2c60abc1b3bc8ea55bd220e70b9c8e1dd4 /sysconfig/network-scripts
parentef532cbd4317a6ecf56d894d4f1532aca2b8463e (diff)
downloadinitscripts-0bb4cfc42fbb7e8edef7227c98cd3de041ca37d5.tar
initscripts-0bb4cfc42fbb7e8edef7227c98cd3de041ca37d5.tar.gz
initscripts-0bb4cfc42fbb7e8edef7227c98cd3de041ca37d5.tar.bz2
initscripts-0bb4cfc42fbb7e8edef7227c98cd3de041ca37d5.tar.xz
initscripts-0bb4cfc42fbb7e8edef7227c98cd3de041ca37d5.zip
- change to /etc/init.d/functions
- eliminate some un-necessary PATH settings - eliminate some TEXTDOMAIN settings
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifdown5
-rwxr-xr-xsysconfig/network-scripts/ifup4
-rwxr-xr-xsysconfig/network-scripts/ifup-ippp3
-rwxr-xr-xsysconfig/network-scripts/ifup-ppp4
-rwxr-xr-xsysconfig/network-scripts/ifup-routes4
-rwxr-xr-xsysconfig/network-scripts/ifup-sl5
6 files changed, 9 insertions, 16 deletions
diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown
index 95f11001..9f07eb6f 100755
--- a/sysconfig/network-scripts/ifdown
+++ b/sysconfig/network-scripts/ifdown
@@ -1,10 +1,9 @@
#!/bin/bash
-PATH=/sbin:/usr/sbin:/bin:/usr/bin
-TEXTDOMAIN=initscripts
+
+. /etc/init.d/functions
cd /etc/sysconfig/network-scripts
. network-functions
-. /etc/rc.d/init.d/functions
CONFIG=$1
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index 66c53c37..b4c20045 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -9,12 +9,10 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-PATH=/sbin:/usr/sbin:/bin:/usr/bin
-TEXTDOMAIN=initscripts
+. /etc/init.d/functions
cd /etc/sysconfig/network-scripts
. network-functions
-. /etc/rc.d/init.d/functions
[ -f ../network ] && . ../network
[ -f ../networking/network ] && . ../networking/network
diff --git a/sysconfig/network-scripts/ifup-ippp b/sysconfig/network-scripts/ifup-ippp
index c30abfc8..387689d9 100755
--- a/sysconfig/network-scripts/ifup-ippp
+++ b/sysconfig/network-scripts/ifup-ippp
@@ -4,11 +4,10 @@
#
# This script is normally called from the ifup script when it detects a ippp device.
-PATH=/sbin:/usr/sbin:/bin:/usr/bin
+. /etc/init.d/functions
cd /etc/sysconfig/network-scripts
. network-functions
-. /etc/rc.d/init.d/functions
# Get global network configuration
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network
diff --git a/sysconfig/network-scripts/ifup-ppp b/sysconfig/network-scripts/ifup-ppp
index 991476d7..9a869479 100755
--- a/sysconfig/network-scripts/ifup-ppp
+++ b/sysconfig/network-scripts/ifup-ppp
@@ -1,9 +1,9 @@
#! /bin/bash
-PATH=/sbin:/usr/sbin:/bin:/usr/bin
+
+. /etc/init.d/functions
cd /etc/sysconfig/network-scripts
. network-functions
-. /etc/rc.d/init.d/functions
# ifup-post for PPP is handled through /etc/ppp/ip-up
if [ "${1}" = daemon ] ; then
diff --git a/sysconfig/network-scripts/ifup-routes b/sysconfig/network-scripts/ifup-routes
index f66a78c0..2ce874c8 100755
--- a/sysconfig/network-scripts/ifup-routes
+++ b/sysconfig/network-scripts/ifup-routes
@@ -1,9 +1,7 @@
#!/bin/bash
-TEXTDOMAIN=initscripts
-
# adds static routes which go through device $1
-. /etc/rc.d/init.d/functions
+. /etc/init.d/functions
if [ "$1" = "" ]; then
echo $"usage: ifup-routes <net-device>"
diff --git a/sysconfig/network-scripts/ifup-sl b/sysconfig/network-scripts/ifup-sl
index 27be5fe3..8e745bb5 100755
--- a/sysconfig/network-scripts/ifup-sl
+++ b/sysconfig/network-scripts/ifup-sl
@@ -1,7 +1,6 @@
#!/bin/bash
-TEXTDOMAIN=initscripts
-PATH=/sbin:/usr/sbin:/bin:/usr/bin
-. /etc/rc.d/init.d/functions
+
+. /etc/init.d/functions
# ifup-post can't be done for slip :-( Solution: use PPP