summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Pryor <profjim@jimpryor.net>2009-09-14 05:43:47 +0200
committerJames Rayner <james@archlinux.org>2009-09-14 08:27:17 +0200
commita02e1e0dea5172d6eb55b8e99428b5ad386d3d66 (patch)
treeb0e06a3966c3ac6b146b64ed6491de1fed3431b0
parentb2badb11c7f3f71c80bd768fb62b0ef0b0718254 (diff)
downloadnetctl-a02e1e0dea5172d6eb55b8e99428b5ad386d3d66.tar.gz
netctl-a02e1e0dea5172d6eb55b8e99428b5ad386d3d66.tar.xz
don't count profile as connected if it was suspended without a profile-down
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
-rw-r--r--src/network2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network b/src/network
index 4c44e0a..ba37847 100644
--- a/src/network
+++ b/src/network
@@ -296,7 +296,7 @@ list_profiles() {
# Return 1 if profile not registered
#
check_profile() {
- [[ -f "$STATE_DIR/profiles/$1" ]] && return 0
+ [[ -f "$STATE_DIR/profiles/$1" && ! -f "$STATE_DIR/suspend/$1" ]] && return 0
return 1
}