From a84b7ab965218f6320c9f95284c03bfddd761fdd Mon Sep 17 00:00:00 2001 From: James Rayner Date: Wed, 13 Feb 2008 20:23:40 +1100 Subject: Created option to allow only one network at a time. Useful for switching networks. --- src/network.subr | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/network.subr b/src/network.subr index d18a645..73e2026 100644 --- a/src/network.subr +++ b/src/network.subr @@ -87,6 +87,12 @@ profile_up() check_profile $1 && err "$1 already connected" && return 1 + # NETWORKS_EXCLUSIVE, rc.conf: Profiles are globally mutually exclusive + # EXCLUSIVE, network.d/profile: Individual profile is mutually exclusive + if checkyesno $NETWORKS_EXCLUSIVE || checkyesno $EXCLUSIVE; then + all_down + fi + stat_busy "$1 up" if check_iface $INTERFACE; then -- cgit v1.2.3-24-g4f1b