ramips: set preinit interface to eth0 by default.
This makes any ramips device accessible via ethernet in failsafe mode. Based on: https://dev.openwrt.org/changeset/36322 Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Patchwork: http://patchwork.openwrt.org/patch/3567/ Acked-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36434 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
77dd775839
commit
e5adedfdd5
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# Copyright (C) 2013 OpenWrt.org
|
||||||
|
#
|
||||||
|
|
||||||
|
. /lib/ramips.sh
|
||||||
|
|
||||||
|
ramips_set_preinit_iface() {
|
||||||
|
ifname=eth0
|
||||||
|
}
|
||||||
|
|
||||||
|
boot_hook_add preinit_main ramips_set_preinit_iface
|
Loading…
Reference in New Issue