[source] base-files: set pi_ifname in board.d case to fix deconfig
LEDE Commits
lede-commits at lists.infradead.org
Sun Aug 14 14:10:28 PDT 2016
jogo pushed a commit to source.git, branch master:
https://git.lede-project.org/?p=source.git;a=commitdiff;h=30352e72ff070d61bb12a015ffaabb08d38635f3
commit 30352e72ff070d61bb12a015ffaabb08d38635f3
Author: Jonas Gorski <jonas.gorski at gmail.com>
AuthorDate: Sun Aug 14 22:59:28 2016 +0200
base-files: set pi_ifname in board.d case to fix deconfig
Due to an empty pi_ifname in the generic failsafe setup, the deconfig
never removed the failsafe networking interface, causing broken
networking later on.
Signed-off-by: Jonas Gorski <jonas.gorski at gmail.com>
---
package/base-files/files/lib/preinit/10_indicate_preinit | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/package/base-files/files/lib/preinit/10_indicate_preinit b/package/base-files/files/lib/preinit/10_indicate_preinit
index 82b730f..a30bf34 100644
--- a/package/base-files/files/lib/preinit/10_indicate_preinit
+++ b/package/base-files/files/lib/preinit/10_indicate_preinit
@@ -90,7 +90,9 @@ preinit_config_board() {
ifname=${ifname%\.*}
fi
- preinit_ip_config $ifname
+ pi_ifname=$ifname
+
+ preinit_ip_config $pi_ifname
}
preinit_ip() {
More information about the lede-commits
mailing list