summaryrefslogtreecommitdiff
path: root/setup-alpine.in
diff options
context:
space:
mode:
authorLukas Bestle <mail@lukasbestle.com>2021-07-10 13:42:34 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2021-11-16 11:19:28 +0000
commit39c91c1486c55ce1ee3ec1e646032d04e21406ed (patch)
treeea311c93a2071e3562c1f08be8ba0635155fde7d /setup-alpine.in
parent6864a1896aabf9672e9055314733b427fdafa099 (diff)
downloadalpine-conf-39c91c1486c55ce1ee3ec1e646032d04e21406ed.zip
setup-interfaces: New -r flag to restart service
Fixes #10480. Fixes #10484.
Diffstat (limited to 'setup-alpine.in')
-rw-r--r--setup-alpine.in6
1 files changed, 2 insertions, 4 deletions
diff --git a/setup-alpine.in b/setup-alpine.in
index 392290b..4ffae48 100644
--- a/setup-alpine.in
+++ b/setup-alpine.in
@@ -128,12 +128,10 @@ if [ "$rc_sys" != LXC ]; then
fi
if [ -n "$INTERFACESOPTS" ]; then
- printf "$INTERFACESOPTS" | $PREFIX/sbin/setup-interfaces -i
+ printf "$INTERFACESOPTS" | $PREFIX/sbin/setup-interfaces -ir
else
- $PREFIX/sbin/setup-interfaces ${quick:+-a}
+ $PREFIX/sbin/setup-interfaces ${quick:+-a} -r
fi
-# start the networking
-/etc/init.d/networking --quiet start >/dev/null
# setup up dns if no dhcp was configured
grep '^iface.*dhcp' $ROOT/etc/network/interfaces > /dev/null ||\