aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-01-29 21:47:46 +0000
committerBill Nottingham <notting@redhat.com>2001-01-29 21:47:46 +0000
commita7bb261d527fb5280b91b73c730450defdfd0fb7 (patch)
tree49b30d19586b21990a43ac530a1e6d695eb0c8d4 /sysconfig/network-scripts
parentcc95cc420ac4398e49f2738d6132a048623a9693 (diff)
downloadinitscripts-a7bb261d527fb5280b91b73c730450defdfd0fb7.tar
initscripts-a7bb261d527fb5280b91b73c730450defdfd0fb7.tar.gz
initscripts-a7bb261d527fb5280b91b73c730450defdfd0fb7.tar.bz2
initscripts-a7bb261d527fb5280b91b73c730450defdfd0fb7.tar.xz
initscripts-a7bb261d527fb5280b91b73c730450defdfd0fb7.zip
allow devices without an IP address (#24127)
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifup6
1 files changed, 6 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index e70eea30..d9757728 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -119,6 +119,12 @@ if [ -n "${DYNCONFIG}" ]; then
exit 1
fi
else
+ if [ -z "${IPADDR}" ]; then
+ # enable device without IP, useful for e.g. PPPoE
+ ifconfig ${DEVICE} up ${MTU:+mtu $MTU}
+ exec /etc/sysconfig/network-scripts/ifup-post ${CONFIG} ${2}
+ fi
+
if [ -z "${NETMASK}" ]; then
eval `/bin/ipcalc --netmask ${IPADDR}`
fi