aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/oxnas
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/oxnas')
-rwxr-xr-xtarget/linux/oxnas/base-files/etc/board.d/02_network2
-rw-r--r--target/linux/oxnas/base-files/lib/preinit/07_set_preinit_iface_oxnas.sh7
2 files changed, 2 insertions, 7 deletions
diff --git a/target/linux/oxnas/base-files/etc/board.d/02_network b/target/linux/oxnas/base-files/etc/board.d/02_network
index a025027fea..b44696bed8 100755
--- a/target/linux/oxnas/base-files/etc/board.d/02_network
+++ b/target/linux/oxnas/base-files/etc/board.d/02_network
@@ -5,6 +5,8 @@
board_config_update
+ifname=eth0
+
ucidef_set_interface_lan "eth0" "dhcp"
board_config_flush
diff --git a/target/linux/oxnas/base-files/lib/preinit/07_set_preinit_iface_oxnas.sh b/target/linux/oxnas/base-files/lib/preinit/07_set_preinit_iface_oxnas.sh
deleted file mode 100644
index 1e096bb0da..0000000000
--- a/target/linux/oxnas/base-files/lib/preinit/07_set_preinit_iface_oxnas.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh
-
-oxnas_set_preinit_iface() {
- ifname=eth0
-}
-
-boot_hook_add preinit_main oxnas_set_preinit_iface