diff options
Diffstat (limited to 'sysconfig/network-scripts/ifup')
-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 |