aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig/network-scripts/ifup')
-rwxr-xr-xsysconfig/network-scripts/ifup16
1 files changed, 9 insertions, 7 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index 1eaabab8..fb203f5a 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -15,6 +15,9 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+PATH=/sbin:/usr/sbin:/bin:/usr/bin
+TEXTDOMAIN=initscripts
+
unset WINDOW # defined by screen, conflicts with our usage
. /etc/init.d/functions
@@ -22,7 +25,7 @@ unset WINDOW # defined by screen, conflicts with our usage
cd /etc/sysconfig/network-scripts
. ./network-functions
-[ -f ../network ] && . ../network
+[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network
CONFIG=${1}
@@ -65,9 +68,9 @@ then
exit 0
fi
-if [ "$USE_NM" = "true" -a -n "$UUID" ]; then
- nmcli con up uuid "$UUID"
- exit $?
+if [ "$USE_NM" = "true" ]; then
+ echo $"$0: interface ${1} is controlled by NetworkManager; skipping." >&2
+ exit 0
fi
# Ethernet 802.1Q VLAN support
@@ -124,9 +127,8 @@ if [ "${VLAN}" = "yes" ] && [ "$ISALIAS" = "no" ]; then
fi
fi
-if [ "${BOOTPROTO}" = "bootp" -o "${BOOTPROTO}" = "dhcp" ]; then
- DYNCONFIG=true
-fi
+# signalling the start of connection
+mdv-network-event connection_start ${DEVICE}
if [ -x /sbin/ifup-pre-local ]; then
/sbin/ifup-pre-local ${CONFIG} $2