~alpine/devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch

[alpine-devel] [PATCH] setup-interfaces: warn if no interfaces are found

Thiébaud Weksteen <thiebaud@weksteen.fr>
Details
Message ID
<1468048222-7854-1-git-send-email-thiebaud@weksteen.fr>
Sender timestamp
1468048222
DKIM signature
missing
Download raw message
Patch: +4 -0
---
If no interfaces are found during the setup, let the user know
before continuing.

 setup-interfaces.in | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/setup-interfaces.in b/setup-interfaces.in
index b4121d5..b907417 100644
--- a/setup-interfaces.in
+++ b/setup-interfaces.in
@@ -473,6 +473,10 @@ prompt_for_interfaces() {
		index=$(( $index + 1 ))
	done

	if [ $index -eq 1 ]; then
		echo "No network interfaces have been initialized!"
	fi

	if [ "$(openrc --sys)" != "LXC" ] || ! ip addr show lo | grep -q 'inet.*127\.0'; then
		echo "type=loopback" > 000~lo.conf
		echo "" > interface
-- 
2.7.4



---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---
Reply to thread Export thread (mbox)