fi
}
+# First make sure interface is available
+if ! ip link show ${DEVICE} ; then
+ echo "Interface ${DEVICE} not available"
+ exit ${EXIT_CODE_WARNING}
+fi
+
if [ "x${BOOTPROTO}" = "xdhcp" ]; then
# DHCP configuration
fi
}
+# First make sure interface is available
+if ! ip link show ${DEVICE} ; then
+ echo "Interface ${DEVICE} not available"
+ exit ${EXIT_CODE_WARNING}
+fi
+
# Determining if the interface is a bridge:
if [ "x${BRIDGE}" = "xyes" ]; then
check_brctl
start)
for i in ${INTERFACES_UP}; do
if LANG=C egrep -L "^ONBOOT=\"?[Yy][Ee][Ss]\"?" ifconfig.$i >/dev/null 2>&1 ; then
- cmd_run_log_box "Ethernet Adapter <$i> init" /etc/rc.d/init.d/ifup "$i"
+ cmd_run_log_box_warn "Ethernet Adapter <$i> init" /etc/rc.d/init.d/ifup "$i"
fi
done
;;
stop)
for i in ${INTERFACES_DN} ; do
if LC_ALL= LANG= ip link show dev $i 2> /dev/null | grep -q "UP" >/dev/null 2>&1 ; then
- cmd_run_log_box "Ethernet Adapter <$i> stop" /etc/rc.d/init.d/ifdown "$i"
+ cmd_run_log_box_warn "Ethernet Adapter <$i> stop" /etc/rc.d/init.d/ifdown "$i"
fi
done
;;