X-Original-To: alpine-devel@lists.alpinelinux.org Received: from mo178.mail-out.ovh.net (mo178.mail-out.ovh.net [178.32.228.178]) by lists.alpinelinux.org (Postfix) with ESMTP id 02E945C4185 for ; Sat, 9 Jul 2016 07:10:42 +0000 (GMT) Received: from player169.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo178.mail-out.ovh.net (Postfix) with ESMTP id 44B3EFFC987 for ; Sat, 9 Jul 2016 09:10:41 +0200 (CEST) Received: from localhost.localdomain (unknown [101.164.66.116]) (Authenticated sender: thiebaud@weksteen.fr) by player169.ha.ovh.net (Postfix) with ESMTPSA id AC2B858006B; Sat, 9 Jul 2016 09:10:38 +0200 (CEST) From: =?UTF-8?q?Thi=C3=A9baud=20Weksteen?= To: alpine-devel@lists.alpinelinux.org Cc: =?UTF-8?q?Thi=C3=A9baud=20Weksteen?= Subject: [alpine-devel] [PATCH] setup-interfaces: warn if no interfaces are found Date: Sat, 9 Jul 2016 17:10:22 +1000 Message-Id: <1468048222-7854-1-git-send-email-thiebaud@weksteen.fr> X-Mailer: git-send-email 2.7.4 X-Ovh-Tracer-Id: 11777194501617504978 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeeltddrfedvgdduvddvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfenuceurghilhhouhhtmecufedttdenuc X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: --- 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 ---