diff --git a/package/starfive/pm/S99hibernation b/package/starfive/pm/S99hibernation index ac5a09fc..90b61fce 100644 --- a/package/starfive/pm/S99hibernation +++ b/package/starfive/pm/S99hibernation @@ -16,7 +16,12 @@ case "$1" in fi ;; stop) - swapoff PARTLABEL="hibernation" + FILE=/dev/disk/by-partlabel/hibernation + if [ -b "$FILE" ];then + swapoff PARTLABEL="hibernation" + else + echo "No PARTLABEL=hibernation!" + fi ;; *) echo "Usage: $0 {start|stop}"