diff options
author | Bill Nottingham <notting@redhat.com> | 2001-01-29 21:47:46 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2001-01-29 21:47:46 +0000 |
commit | a7bb261d527fb5280b91b73c730450defdfd0fb7 (patch) | |
tree | 49b30d19586b21990a43ac530a1e6d695eb0c8d4 | |
parent | cc95cc420ac4398e49f2738d6132a048623a9693 (diff) | |
download | initscripts-a7bb261d527fb5280b91b73c730450defdfd0fb7.tar initscripts-a7bb261d527fb5280b91b73c730450defdfd0fb7.tar.gz initscripts-a7bb261d527fb5280b91b73c730450defdfd0fb7.tar.bz2 initscripts-a7bb261d527fb5280b91b73c730450defdfd0fb7.tar.xz initscripts-a7bb261d527fb5280b91b73c730450defdfd0fb7.zip |
allow devices without an IP address (#24127)
-rwxr-xr-x | sysconfig/network-scripts/ifup | 6 |
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 |