diff options
author | James Rayner <james@archlinux.org> | 2008-02-13 10:23:40 +0100 |
---|---|---|
committer | James Rayner <james@archlinux.org> | 2008-02-13 10:23:40 +0100 |
commit | a84b7ab965218f6320c9f95284c03bfddd761fdd (patch) | |
tree | 5e23cd99a2fb519ef0a35d292ff7b00371e53436 /src | |
parent | 363cb3b63bfe0a91840f34903234037df2aeeb83 (diff) | |
download | netctl-a84b7ab965218f6320c9f95284c03bfddd761fdd.tar.gz netctl-a84b7ab965218f6320c9f95284c03bfddd761fdd.tar.xz |
Created option to allow only one network at a time. Useful for switching networks.
Diffstat (limited to 'src')
-rw-r--r-- | src/network.subr | 6 |
1 files changed, 6 insertions, 0 deletions
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 |