Merge branch 'CR_5049_Optimize_swapoff_mason.huo' into 'jh7110-devel'

CR_5049 package: starfive: Optimize the swapoff partition

See merge request sdk/buildroot!98
This commit is contained in:
andy.hu
2023-04-26 09:47:38 +00:00
+6 -1
View File
@@ -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}"