Skip to content

Commit

Permalink
Change shutdown logic
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Schröder <[email protected]>
  • Loading branch information
Micha-he authored Jan 16, 2025
1 parent c5643cf commit 86c2ed4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zram-config
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ case "$1" in
ZRAM_DEV="$2"
TARGET_DIR="$3"
BIND_DIR="$(basename "$TARGET_DIR").bind"
[[ -z $SHUTDOWN ]] && serviceConfiguration "stop"
! [[ -z $SHUTDOWN ]] && serviceConfiguration "stop"
syncZdir
;;
esac
Expand All @@ -476,4 +476,4 @@ case "$1" in
exit 0
;;
esac
[[ -z $SHUTDOWN ]] && serviceConfiguration "start"
! [[ -z $SHUTDOWN ]] && serviceConfiguration "start"

0 comments on commit 86c2ed4

Please sign in to comment.