summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
Diffstat (limited to 'src/network')
-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
}