From a02e1e0dea5172d6eb55b8e99428b5ad386d3d66 Mon Sep 17 00:00:00 2001 From: Jim Pryor Date: Sun, 13 Sep 2009 23:43:47 -0400 Subject: don't count profile as connected if it was suspended without a profile-down Signed-off-by: Jim Pryor --- src/network | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- cgit v1.2.3-24-g4f1b