Permalink
Browse files

fix 12swap for dumb gb shell

Change-Id: I6d21068b89c82902eb203d2371614c3b21672c28
  • Loading branch information...
1 parent b0aa1f6 commit b57f9d9b66175b59791c14ff4dfb3842fc75f901 @nadlabak nadlabak committed Dec 14, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 prebuilt/etc/init.d/12swap
@@ -7,11 +7,11 @@ if ! [ -e /data/property/persist.sys.swapsize ]; then
exit
fi
SWAPSIZE=`cat /data/property/persist.sys.swapsize`
-if ((SWAPSIZE == 0)); then
+if [ $SWAPSIZE -eq 0 ]; then
exit
fi
SWAPPARTSIZE=$((`cat /sys/block/mmcblk0/mmcblk0p3/size`/2))
-if ((SWAPSIZE > SWAPPARTSIZE)); then
+if [ $SWAPSIZE -qt $SWAPPARTSIZE ]; then
SWAPSIZE=$SWAPPARTSIZE
fi
mkswap /dev/block/mmcblk0p3 $SWAPSIZE

0 comments on commit b57f9d9

Please sign in to comment.