[LEDE-DEV] [PATCH] base-files: Don't deconfigure IP settings while using NFS root
Petr Štetiar
ynezz at true.cz
Sun Nov 5 02:14:23 PST 2017
Signed-off-by: Petr Štetiar <ynezz at true.cz>
---
package/base-files/files/lib/preinit/10_indicate_preinit | 2 ++
1 file changed, 2 insertions(+)
diff --git a/package/base-files/files/lib/preinit/10_indicate_preinit b/package/base-files/files/lib/preinit/10_indicate_preinit
index 7a97a8d..457ce21 100644
--- a/package/base-files/files/lib/preinit/10_indicate_preinit
+++ b/package/base-files/files/lib/preinit/10_indicate_preinit
@@ -114,6 +114,8 @@ preinit_ip() {
}
preinit_ip_deconfig() {
+ grep -q "nfsroot" /proc/cmdline && return
+
[ -n "$pi_ifname" ] && grep -q "$pi_ifname" /proc/net/dev && {
local netdev vid
--
1.9.1
More information about the Lede-dev
mailing list