~alpine/devel

setup-interfaces: warn if no interfaces are found v1 PROPOSED

Thiébaud Weksteen <thiebaud@weksteen.fr>
Thiébaud Weksteen: 1
 setup-interfaces: warn if no interfaces are found

 1 files changed, 4 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.alpinelinux.org/~alpine/devel/patches/818/mbox | git am -3
Learn more about email & git

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

Thiébaud Weksteen <thiebaud@weksteen.fr>
---
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
---