aboutsummaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-06-25 13:46:09 -0400
committerDave Reisner <dreisner@archlinux.org>2011-06-25 13:46:36 -0400
commitfc9ce46483fc4df673c4f2f23eeeb405d1040c4b (patch)
tree2bc6ed2865c8f26a6773eb50f3ced6cba00f4990 /network
parent713213c19395fd1541cdaa025ac5f977d062108a (diff)
downloadinitscripts-fc9ce46483fc4df673c4f2f23eeeb405d1040c4b.tar.xz
network: don't warn for deprecation with no settings
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'network')
-rwxr-xr-xnetwork3
1 files changed, 2 insertions, 1 deletions
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