mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 06:08:08 +00:00
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> SVN-Revision: 36434
This commit is contained in:
parent
7bfab6e308
commit
978567a89e
@ -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
Block a user