Commits

Dave Reisner  committed fc9ce46

network: don't warn for deprecation with no settings

Signed-off-by: Dave Reisner <dreisner@archlinux.org>

  • Participants
  • Parent commits 713213c

Comments (0)

Files changed (1)

 
 # 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