From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 282A61384B4 for ; Sun, 8 Nov 2015 14:34:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 808E0E0894; Sun, 8 Nov 2015 14:33:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2B468E0897 for ; Sun, 8 Nov 2015 14:33:58 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5747F33FDBF for ; Sun, 8 Nov 2015 14:33:57 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 834692287 for ; Sun, 8 Nov 2015 14:33:53 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1446966816.a4fcc78c90893103d012ae1dc05a2a8f42d7cdaa.robbat2@OpenRC> Subject: [gentoo-commits] proj/netifrc:master commit in: net/ X-VCS-Repository: proj/netifrc X-VCS-Files: net/bridge.sh X-VCS-Directories: net/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: a4fcc78c90893103d012ae1dc05a2a8f42d7cdaa X-VCS-Branch: master Date: Sun, 8 Nov 2015 14:33:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 196e20e4-bd57-4e76-b9cb-88c9ad8361db X-Archives-Hash: bd30bfd7d83d6e0403ef1606fd2b8f1d commit: a4fcc78c90893103d012ae1dc05a2a8f42d7cdaa Author: Alon Bar-Lev gentoo org> AuthorDate: Sat Nov 7 20:02:59 2015 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Sun Nov 8 07:13:36 2015 +0000 URL: https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=a4fcc78c net: bridge: add warning when using sysfs variables without prefix Signed-off-by: Alon Bar-Lev gentoo.org> net/bridge.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/bridge.sh b/net/bridge.sh index 407b578..3dfd8b1 100644 --- a/net/bridge.sh +++ b/net/bridge.sh @@ -129,6 +129,7 @@ bridge_pre_start() for prefix in "" bridge_; do eval s=\$${prefix}${n}_${IFVAR} if [ -n "${s}" ]; then + [ -z "${prefix}" ] && ewarn "sysfs key '${n}_${IFVAR}' should be prefixed, please add bridge_ prefix." einfo "Setting ${n}: ${s}" echo "${s}" >"${x}" || \ eerror "Failed to configure $n (${n}_${IFVAR})" @@ -167,6 +168,7 @@ bridge_pre_start() for prefix in "" brport_; do eval s=\$${prefix}${n}_${IFVAR} if [ -n "${s}" ]; then + [ -z "${prefix}" ] && ewarn "sysfs key '${n}_${IFVAR}' should be prefixed, please add brport_ prefix." einfo "Setting ${n}@${IFACE}: ${s}" echo "${s}" >"${x}" || \ eerror "Failed to configure $n (${n}_${IFVAR})"