1 --- a/components/9990-cmdline-old
2 +++ b/components/9990-cmdline-old
4 UNIONTYPE="${_PARAMETER#union=}"
9 + VLANS="${VLANS} ${_PARAMETER#vlan=}"
15 --- a/components/9990-grml-networking.sh
16 +++ b/components/9990-grml-networking.sh
21 - cat >> $IFFILE << EOF
22 + if [ -n "$VLANS" ] ; then
25 + # vlan=<vid>:<phydevice>
26 + for line in $(echo $VLANS | sed 's/ /\n'/) ; do
30 + if [ -n "$vlandev" ] && [ -n "$vlanid" ] ; then
33 + vlan_raw_dev=$interface
34 + interface="${vlandev}.${vlanid}"
41 + if [ -n "$vlan_raw_dev" ] ; then
42 + cat >> $IFFILE << EOF
44 +iface ${interface} inet ${method}
45 + vlan-raw-device $vlan_raw_dev
48 + cat >> $IFFILE << EOF
49 allow-hotplug ${interface}
50 iface ${interface} inet ${method}
54 + unset vlandev vlanid vlan_raw_dev # unset variables to have clean state for next device
56 # DNS for resolvconf and /etc/resolv.conf
57 if [ -e "${netconfig}" ]; then