equal
deleted
inserted
replaced
25 # |
25 # |
26 # The license mentioned above concerns the source code only. Using the EtherCAT |
26 # The license mentioned above concerns the source code only. Using the EtherCAT |
27 # technology and brand is only permitted in compliance with the industrial |
27 # technology and brand is only permitted in compliance with the industrial |
28 # property and similar rights of Beckhoff Automation GmbH. |
28 # property and similar rights of Beckhoff Automation GmbH. |
29 # |
29 # |
|
30 # vim: expandtab |
|
31 # |
30 #------------------------------------------------------------------------------ |
32 #------------------------------------------------------------------------------ |
31 |
33 |
32 # this ifup.d script adds special network interfaces to a network bridge |
34 # this ifup.d script adds special network interfaces to a network bridge |
33 |
35 |
34 CFGNAME=${1} |
36 CFGNAME=${1} |
45 exit 0; |
47 exit 0; |
46 fi |
48 fi |
47 |
49 |
48 # does the EoE bridge already exist? |
50 # does the EoE bridge already exist? |
49 if ! ${BRCTL} show | grep -q "^${BRNAME}"; then |
51 if ! ${BRCTL} show | grep -q "^${BRNAME}"; then |
50 ${LOGGER} Creating ${BRNAME} |
52 ${LOGGER} Creating ${BRNAME} |
51 ${BRCTL} addbr ${BRNAME} # create it |
53 ${BRCTL} addbr ${BRNAME} # create it |
52 fi |
54 fi |
53 |
55 |
54 ${LOGGER} Adding ${IFNAME} to ${BRNAME} |
56 ${LOGGER} Adding ${IFNAME} to ${BRNAME} |
55 ip link set ${IFNAME} down |
57 ip link set ${IFNAME} down |
56 ip addr flush dev ${IFNAME} |
58 ip addr flush dev ${IFNAME} |