vlan_setup
if is_yes $ETH_VLANS && `echo $DEVICE | grep -q ^eth` ; then
if echo "${DEVICE}" | grep -q '\.' ; then
- ip link set ${DEVICE} down
+ # vlan down
ip addr flush dev ${DEVICE} 2>&1 | grep -v "Nothing to flush"
ip link set ${DEVICE} down
/sbin/vconfig rem ${DEVICE} 2>&1 > /dev/null
else
# downujemy interfejs nadrzedny do vlanow
- for VLANDEVICE in `ls /proc/net/vlan | grep ^${DEVICE}` ; do
+ for VLANDEVICE in `ls /proc/net/vlan 2> /dev/null | grep ^${DEVICE}` ; do
# najpierw wszystkie vlany po kolei
ip addr flush dev ${VLANDEVICE} 2>&1 | grep -v "Nothing to flush"
ip link set ${VLANDEVICE} down