*** /etc/net/scripts/create-vlan Thu Feb 4 00:16:46 2010 --- /root/create-vlan Sat Mar 20 21:35:32 2010 *************** *** 6,15 **** : ${HOST:?HOST is missing for $NAME} : ${VID:?VID is missing for $NAME} ! $MODPROBE 8021q || { ! print_error "8021q kernel module not found" ! exit 2 ! } # obsolete now? if iface_is_up $HOST; then --- 6,21 ---- : ${HOST:?HOST is missing for $NAME} : ${VID:?VID is missing for $NAME} ! if [ ! -f "/proc/net/vlan/config" ]; then ! if [ `cat /proc/user_beancounters|egrep "^ *0:"` ]; then ! $MODPROBE 8021q || { ! print_error "8021q kernel module not found" ! exit 2 ! } ! else ! print_error "We are in VE, but 8021q kernel module not loaded in HN" ! fi ! fi # obsolete now? if iface_is_up $HOST; then