#
PATH=/sbin:/usr/sbin:/bin:/usr/bin
+run_pre_up() { :; }
+
. /etc/sysconfig/network
. /etc/rc.d/init.d/functions
. /lib/rc-scripts/functions.network
SYSCTLDEVICE=$(echo ${DEVICE} | sed 's/\./\//g')
+# anything you need done first
+run_pre_up
+
OTHERSCRIPT="/lib/rc-scripts/ifup-${DEVICETYPE}"
if [ -x "$OTHERSCRIPT" ]; then
if [ -n "$MACVLAN_DEV" -a -n "$MACVLAN_MACADDR" ]; then
ip link del link ${MACVLAN_DEV} ${DEVICE} type macvlan > /dev/null 2>&1
- ip link add link ${MACVLAN_DEV} address ${MACVLAN_MACADDR} name ${DEVICE} type macvlan
+ ip link add link ${MACVLAN_DEV} address ${MACVLAN_MACADDR} name ${DEVICE} type macvlan ${MACVLAN_MODE:+mode $MACVLAN_MODE}
fi
# is this device available? (this catches PCMCIA devices for us)
fi
DHCP_ARGS="$DHCP_OPTIONS $DHCP_ARGS"
- if check_link_down ${DEVICE}; then
+ [ -z "$CHECK_LINK_WAIT_TIMEOUT" ] && CHECK_LINK_WAIT_TIMEOUT=5
+ if check_link_down ${DEVICE} $(( $CHECK_LINK_WAIT_TIMEOUT * 2 )); then
run_cmd "$(nls 'Determining IP information for %s (%s)' "$DEVICE" "${DHCP_CLIENT##*/}")" /bin/false
nls '%s: Check cable/radio on-off switch?' "$DEVICE"
exit 1