blob: edc5a12e34df91c19ff0a661f91bc5b519ff1e96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/sh
#
# Copyright (C) 2013 OpenWrt.org
#
. /lib/ramips.sh
ramips_set_preinit_iface() {
local board=$(ramips_board_name)
case "$board" in
mpr-a2)
#TODO
# Ralink ethernet driver cannot re-open ethernet if it is opened during preinit and then closed.
# Looks like Ralink ethernet driver has a problem.
# Temporary solution is not to open ethernet during preinit.
return 0
;;
esac
ifname=eth0
}
boot_hook_add preinit_main ramips_set_preinit_iface
|