English Language flag
// Log In
// CVSweb
Project: FreeWRT
// Summary // Activity // Search // Tracker // Lists // News // SCM // Wiki

SCM Repository

ViewVC logotype

Diff of /branches/freewrt_1_0/package/busybox/files/vlan.pre-up

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2765 by wbx, Sat Apr 21 15:59:40 2007 UTC revision 2766 by tha, Mon Jun 11 23:24:02 2007 UTC
# Line 23  case "$IFACE" in Line 23  case "$IFACE" in
23                  ;;                  ;;
24  esac  esac
25    
26  if [ -n "$IF_VLAN_RAW_DEVICE" ]  if [ "$IF_VLAN_RAW_DEVICE" != "" ]
27  then  then
28          [ -x /sbin/vconfig ] || exit 0          [ -x /sbin/vconfig ] || exit 0
29          if ! grep -q "$IF_VLAN_RAW_DEVICE" /proc/net/dev          if ! grep -q "$IF_VLAN_RAW_DEVICE" /proc/net/dev
# Line 40  then Line 40  then
40          ip link set up dev $IF_VLAN_RAW_DEVICE          ip link set up dev $IF_VLAN_RAW_DEVICE
41          vconfig add $IF_VLAN_RAW_DEVICE $VLANID          vconfig add $IF_VLAN_RAW_DEVICE $VLANID
42          # change mac link layer address          # change mac link layer address
43          if [ -n $IF_MAC_ADDRESS ]          if [ "$IF_MAC_ADDRESS" != "" ]
44          then          then
45                  ip link set $IF_VLAN_RAW_DEVICE.$VLANID address $IF_MAC_ADDRESS                  ip link set $IF_VLAN_RAW_DEVICE.$VLANID address $IF_MAC_ADDRESS
46          fi          fi
47          ip link set up dev $IF_VLAN_RAW_DEVICE.$VLANID          ip link set up dev $IF_VLAN_RAW_DEVICE.$VLANID
48    
49          # configure switch ports          # configure switch ports
50          if [ -n "$IF_SWITCH_PORTS" ]          if [ "$IF_SWITCH_PORTS" != "" ]
51          then          then
52                  echo "$IF_SWITCH_PORTS" > /proc/switch/$IF_VLAN_RAW_DEVICE/vlan/$VLANID/ports                  echo "$IF_SWITCH_PORTS" > /proc/switch/$IF_VLAN_RAW_DEVICE/vlan/$VLANID/ports
53          fi          fi

Legend:
Removed from v.2765  
changed lines
  Added in v.2766

root@freewrt.org:443
ViewVC Help
Powered by ViewVC 1.1.20