3 # reset button only supported on ar5315+ at the moment
5 if [ -z "$pi_ifname" ]; then
6 grep -q 'Atheros AR231[567]' /proc
/cpuinfo
&& {
7 if [ -e "/sys/bus/mdio_bus/drivers/Infineon ADM6996/0:00" -o \
8 -e "/sys/bus/mdio_bus/drivers/Marvell 88E6060/0:10" ]; then
9 vconfig set_name_type DEV_PLUS_VID_NO_PAD
19 [ -n "$pi_ifname" ] && grep -q "$pi_ifname" /proc
/net
/dev
&& {
20 ifconfig
$pi_ifname $pi_ip netmask
$pi_netmask broadcast
$pi_broadcast up
25 # reset button only supported on ar5315+ at the moment
27 preinit_ip_deconfig
() {
28 if [ -e "/sys/bus/mdio_bus/drivers/Infineon ADM6996/0:00" -o \
29 -e "/sys/bus/mdio_bus/drivers/Marvell 88E6060/0:10" ]; then
30 vconfig rem eth0.1
2>/dev
/null
31 ifconfig
$pi_ifname down
32 elif [ -n "$pi_ifname" ]; then
33 ifconfig
$pi_ifname 0.0.0.0