/etc/init.d/networking fails after an unclean shutdown
During system startup, /etc/init.d/networking won’t bring up network interfaces if the system hasn’t been shut down properly:
* Starting networking ... * lo ...ifup: interface lo already configured
[ ok ]
* eth0 ...ifup: interface eth0 already configured
[ ok ]
Using ifup -f $iface instead of ifup $iface solves that problem:
--- /etc/init.d/networking.apk-new
+++ /etc/init.d/networking
@@ -43,7 +43,7 @@
for iface in $(find_ifaces); do
local r=0
ebegin "$iface"
- if ! ifup $iface >/dev/null; then
+ if ! ifup -f $iface >/dev/null; then
ifdown $iface >/dev/null 2>&1
r=1
fi
(from redmine: issue id 6488, created on 2016-11-23)