Showing 1 changed files with 1 additions and 1 deletions
+1 -1
rtcwake
... ...
@@ -79,7 +79,7 @@ EOL
79 79
             COUNT=1
80 80
             while sleep $WAIT_TRIGGER_DELAY && eval "$WAIT_TRIGGER"; do
81 81
                 let COUNT++
82
-                if test $COUNT -eq $MAX_TRIGGER; then
82
+                if test $COUNT -gt $MAX_TRIGGER; then
83 83
                     if test -n "$ON_ERROR"; then
84 84
                         eval "$ON_ERROR"
85 85
                     fi