summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2022-10-13 13:57:10 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2022-10-13 13:57:10 +0200
commita92289ee150d91e1c9af414ef8c85c57763b594d (patch)
tree8a6bcca75bdcaf3dfa60f2bdd9bb2bbdf92d4f76 /common
parentd4ae058b027e33547bc6b0448594d4dd878dc2ad (diff)
parent19eabb0a16b5e2435afc4dd16718fef1cc08b6fd (diff)
downloadbarebox-a92289ee150d91e1c9af414ef8c85c57763b594d.tar.gz
barebox-a92289ee150d91e1c9af414ef8c85c57763b594d.tar.xz
Merge branch 'for-next/net'
Diffstat (limited to 'common')
-rw-r--r--common/startup.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/startup.c b/common/startup.c
index f53b73f81a..f96cff4142 100644
--- a/common/startup.c
+++ b/common/startup.c
@@ -37,6 +37,7 @@
#include <linux/ctype.h>
#include <watchdog.h>
#include <glob.h>
+#include <net.h>
#include <bselftest.h>
extern initcall_t __barebox_initcalls_start[], __barebox_early_initcalls_end[],
@@ -307,6 +308,9 @@ static int run_init(void)
if (autoboot == AUTOBOOT_BOOT)
run_command("boot");
+ if (IS_ENABLED(CONFIG_NET))
+ eth_open_all();
+
if (autoboot == AUTOBOOT_MENU)
run_command(MENUFILE);