aboutsummaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
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