db03b6bde6574d98bcfc43f9269cfe1229efe05e
[openwrt.git] / target / linux / ramips / base-files / lib / preinit / 07_set_preinit_iface_ramips
1 #!/bin/sh
2 #
3 # Copyright (C) 2013 OpenWrt.org
4 #
5
6 . /lib/ramips.sh
7
8 ramips_set_preinit_iface() {
9         RT3X5X=`cat /proc/cpuinfo | egrep "(RT3.5|RT5350)"`
10         if [ -n "${RT3X5X}" ]; then
11                 swconfig dev rt305x set reset 1
12         fi
13
14         ifname=eth0
15 }
16
17 boot_hook_add preinit_main ramips_set_preinit_iface