From fc9ce46483fc4df673c4f2f23eeeb405d1040c4b Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sat, 25 Jun 2011 13:46:09 -0400 Subject: network: don't warn for deprecation with no settings Signed-off-by: Dave Reisner --- network | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/network b/network index 74fc3d1..868780e 100755 --- a/network +++ b/network @@ -9,7 +9,8 @@ done # helper function to determine if legacy network support is needed need_legacy() { - if [[ -z $interface ]]; then + # complain when `interface' is unset and `INTERFACES' has profiles enabled + if [[ -z $interface && ${INTERFACES[@]##!*} ]]; then return 0 # need legacy fi -- cgit v1.2.3-54-g00ecf