diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/macvlan.sh | 6 | ||||
-rw-r--r-- | net/vlan.sh | 8 |
2 files changed, 14 insertions, 0 deletions
diff --git a/net/macvlan.sh b/net/macvlan.sh index 92bcf1f8..8ac75b88 100644 --- a/net/macvlan.sh +++ b/net/macvlan.sh @@ -43,6 +43,12 @@ macvlan_pre_start() [ -z "${macvlan}" ] && return 0 _check_macvlan || return 1 + + case " ${MODULES} " in + *" ifconfig "*) + eerror "sys-apps/iproute2 is required to configure MACVLANs" + return 1 ;; + esac # optional mode, default to "private" local mode= diff --git a/net/vlan.sh b/net/vlan.sh index 9cce3b90..ced5aa0c 100644 --- a/net/vlan.sh +++ b/net/vlan.sh @@ -51,6 +51,14 @@ vlan_pre_start() eerror "You must convert your vconfig_ VLAN entries to vlan${N} entries." return 1 fi + local vlans= + eval vlans=\$vlans_${IFVAR} + [ -z "$vlans" ] && return 0 + case " ${MODULES} " in + *" ifconfig "*) + eerror "sys-apps/iproute2 is required to configure VLANs" + return 1 ;; + esac } vlan_post_start() |