SVN: rc-scripts/trunk/sysconfig/network-scripts/ifup
baggins
baggins at pld-linux.org
Tue Mar 10 12:20:34 CET 2009
Author: baggins
Date: Tue Mar 10 12:20:34 2009
New Revision: 10195
Modified:
rc-scripts/trunk/sysconfig/network-scripts/ifup
Log:
- add IP_LABEL support
Modified: rc-scripts/trunk/sysconfig/network-scripts/ifup
==============================================================================
--- rc-scripts/trunk/sysconfig/network-scripts/ifup (original)
+++ rc-scripts/trunk/sysconfig/network-scripts/ifup Tue Mar 10 12:20:34 2009
@@ -191,6 +191,9 @@
else
ip addr add ${IP4ADDR} ${ALIAS} dev ${DEVICE} ${IP4ADDROPT}
fi
+ if [ -n "${IP4ADDRLABEL}" ]; then
+ ip addrlabel add prefix ${IP4ADDR} dev ${DEVICE} label ${IP4ADDRLABEL}
+ fi
fi
# Set device up
@@ -199,6 +202,9 @@
# IPv6 in use ?
if is_yes "$IPV6_NETWORKING" && [ -n "${IP6ADDR}" ]; then
ip addr add ${IP6ADDR} dev ${DEVICE} ${IP6ADDROPT}
+ if [ -n "${IP6ADDRLABEL}" ]; then
+ ip addrlabel add prefix ${IP6ADDR} dev ${DEVICE} label ${IP6ADDRLABEL}
+ fi
fi
if is_yes "$IPV4_NETWORKING" && [ -n "${IP4ADDR}" -a -x /sbin/arping ]; then
More information about the pld-cvs-commit
mailing list