summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--setup-alpine.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/setup-alpine.in b/setup-alpine.in
index ad4ecce..e6a1104 100644
--- a/setup-alpine.in
+++ b/setup-alpine.in
@@ -128,10 +128,11 @@ if [ "$rc_sys" != LXC ]; then
$PREFIX/sbin/setup-hostname ${HOSTNAMEOPTS}
fi
+[ -z "$SSH_CONNECTION" ] && rst_if=1
if [ -n "$INTERFACESOPTS" ]; then
- printf "$INTERFACESOPTS" | $PREFIX/sbin/setup-interfaces -ir
+ printf "$INTERFACESOPTS" | $PREFIX/sbin/setup-interfaces -i ${rst_if:+-r}
else
- $PREFIX/sbin/setup-interfaces ${quick:+-a} -r
+ $PREFIX/sbin/setup-interfaces ${quick:+-a} ${rst_if:+-r}
fi
# setup up dns if no dhcp was configured