summaryrefslogtreecommitdiffstats
path: root/core/modules/pvs2
diff options
context:
space:
mode:
authorSimon Rettberg2018-11-15 14:33:44 +0100
committerSimon Rettberg2018-11-15 14:33:44 +0100
commit85b11f0fdc0a12ed0b46f276f1acd576c12bc44a (patch)
treeddb68caee1ec8f73c7ead1059b38a40cca469522 /core/modules/pvs2
parent[rfs-stage32] Don't run fstrim on mkfs as it can slow down things (diff)
downloadmltk-85b11f0fdc0a12ed0b46f276f1acd576c12bc44a.tar.gz
mltk-85b11f0fdc0a12ed0b46f276f1acd576c12bc44a.tar.xz
mltk-85b11f0fdc0a12ed0b46f276f1acd576c12bc44a.zip
[pvs2] Fix toggleManager.sh always switching to manager
Diffstat (limited to 'core/modules/pvs2')
-rwxr-xr-xcore/modules/pvs2/data/opt/openslx/pvs2/toggleManager.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/core/modules/pvs2/data/opt/openslx/pvs2/toggleManager.sh b/core/modules/pvs2/data/opt/openslx/pvs2/toggleManager.sh
index f2749d8b..a7c86eda 100755
--- a/core/modules/pvs2/data/opt/openslx/pvs2/toggleManager.sh
+++ b/core/modules/pvs2/data/opt/openslx/pvs2/toggleManager.sh
@@ -21,14 +21,12 @@ getCurrent() {
wmctrl -d | awk '{if ($2 == "*") print $1}'
}
-# Do this whenever we're triggered
-moveVm
-moveMgr
- wmctrl -s 0
-
case "$EVENT" in
init)
echo "CHECKED=false"
+ moveVm
+ moveMgr
+ wmctrl -s 0
;;
connected)
echo "VISIBLE=$ISLOCAL"