From:
[email protected]
Package: vlan
Version: 1.6-1.1
Followup-For: Bug #196890
oh, im not the first.
I also noticed that line 12 in the pre-up script have an error in the
sed line. Should it not read "s/vlan//;" instead of the "s/vlan0*//;" ?
'0*' means zero or more '0' so it doesn't matter, same with "s/eth[0-9][0-9]*\.0*//g"
here my version: -----------------------------------------------------------------------------------
--- /tmp/vlan 2003-08-23 17:37:31.000000000 +0200
+++ /etc/network/if-post-down.d/vlan 2004-08-12 16:09:18.000000000 +0200
@@ -1,5 +1,18 @@
#!/bin/sh
+case "$IFACE" in
+ eth*.0*)
+ vconfig set_name_type DEV_PLUS_VID
+ VLANID=`echo $IFACE|sed "s/eth[0-9][0-9]*\.0*//g"`
+ IF_VLAN_RAW_DEVICE=`echo $IFACE|sed "s/\(eth[0-9][0-9]*\)\..*/\1/"`
+ ;;
+ eth*.*)
+ vconfig set_name_type DEV_PLUS_VID_NO_PAD
+ VLANID=`echo $IFACE|sed "s/eth[0-9][0-9]*\.0*//g"`
+ IF_VLAN_RAW_DEVICE=`echo $IFACE|sed "s/\(eth[0-9][0-9]*\)\..*/\1/"`
+ ;;
+esac
+
if [ -z "$IF_VLAN_RAW_DEVICE" ]
then
exit 0 -----------------------------------------------------------------------------------
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.6
Locale: LANG