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:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user