From 3be49f5d07907ac3b58e43ff791f04afc8eb7363 Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Tue, 8 Oct 2019 13:49:41 +0200 Subject: [PATCH] busybox: create marker file if kernel ip configuration is used Signed-off-by: Matthias Reichl --- packages/sysutils/busybox/scripts/init | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/sysutils/busybox/scripts/init b/packages/sysutils/busybox/scripts/init index c1587abb10..3f755efca5 100755 --- a/packages/sysutils/busybox/scripts/init +++ b/packages/sysutils/busybox/scripts/init @@ -1077,6 +1077,9 @@ for arg in $(cat /proc/cmdline); do bigfont=*) BIGFONT="${arg#*=}" ;; + ip=*) + KERNEL_IPCONFIG="yes" + ;; esac done @@ -1145,6 +1148,10 @@ if [ "$FLASH_NETBOOT" = "yes" ]; then echo "" > /sysroot/dev/.flash_netboot fi +if [ "$KERNEL_IPCONFIG" = "yes" ]; then + echo "" > /sysroot/dev/.kernel_ipconfig +fi + # swap can not be used over nfs.(see scripts/mount-swap) if [ "$STORAGE_NETBOOT" = "yes" ]; then echo "" > /sysroot/dev/.storage_netboot