aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authorJonas Gorski <jonas.gorski@gmail.com>2016-08-14 22:59:28 +0200
committerJonas Gorski <jonas.gorski@gmail.com>2016-08-14 23:10:17 +0200
commit30352e72ff070d61bb12a015ffaabb08d38635f3 (patch)
tree3a6477ef97e405e4d36c9135eedc14e410a006ab /package/base-files
parent95bad62f2a905e8d7e7a935361e8f3664eb3e177 (diff)
downloadupstream-30352e72ff070d61bb12a015ffaabb08d38635f3.tar.gz
upstream-30352e72ff070d61bb12a015ffaabb08d38635f3.tar.bz2
upstream-30352e72ff070d61bb12a015ffaabb08d38635f3.zip
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@gmail.com>
Diffstat (limited to 'package/base-files')
-rw-r--r--package/base-files/files/lib/preinit/10_indicate_preinit4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/base-files/files/lib/preinit/10_indicate_preinit b/package/base-files/files/lib/preinit/10_indicate_preinit
index 82b730f0c5..a30bf34f6e 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() {