[ar71xx] fix compiler warnings in the m25p80 driver on 2.6.28
[openwrt.git] / target / linux / atheros / base-files / etc / preinit.arch
1 # reset button only supported on ar5315+ at the moment
2 grep 'Atheros AR231[567]' /proc/cpuinfo > /dev/null && {
3 if [ -e "/sys/bus/mdio_bus/drivers/Infineon ADM6996/0:00" -o \
4 -e "/sys/bus/mdio_bus/drivers/Marvell 88E6060/0:1f" ]; then
5 vconfig set_name_type DEV_PLUS_VID_NO_PAD
6 ifconfig eth0 up
7 vconfig add eth0 0
8 ifname=eth0.0
9 else
10 ifname=eth0
11 fi
12 failsafe_ip
13 netmsg 192.168.1.255 "Press reset now, to enter Failsafe!"
14 ifconfig "$ifname" 0.0.0.0 down
15 sleep 2
16 if [ -e "/sys/bus/mdio_bus/drivers/Infineon ADM6996/0:00" -o \
17 -e "/sys/bus/mdio_bus/drivers/Marvell 88E6060/0:1f" ]; then
18 vconfig rem eth0.0
19 ifconfig eth0 down
20 fi
21 }
This page took 0.042098 seconds and 5 git commands to generate.