Skip to content

Commit

Permalink
Add missing paths
Browse files Browse the repository at this point in the history
Signed-off-by: Ethan Dye <[email protected]>
  • Loading branch information
ecdye committed Dec 28, 2024
1 parent 079ef8f commit d100353
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zram-config
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ umountTarget() {
removeZdir() {
local retVal=0

log "INFO" "Beginning merge of device /dev${ZRAM_DEV}."
log "INFO" "Beginning merge of device /dev/${ZRAM_DEV}."

[[ -n $OLDLOG_DIR ]] && rm -f /etc/logrotate.d/00_oldlog
[[ -z $TARGET_DIR ]] && retVal=1
Expand Down Expand Up @@ -239,8 +239,8 @@ removeZdir() {
removeZswap() {
log "INFO" "Beginning removal of swap device."

if [[ -z $SHUTDOWN ]] && ! swapoff "/dev${ZRAM_DEV}" &> /dev/null; then
log "ERROR" "Failed to swapoff /dev${ZRAM_DEV}."
if [[ -z $SHUTDOWN ]] && ! swapoff "/dev/${ZRAM_DEV}" &> /dev/null; then
log "ERROR" "Failed to swapoff /dev/${ZRAM_DEV}."
return 1
fi

Expand Down

0 comments on commit d100353

Please sign in to comment.