View Single Post
Posts: 578 | Thanked: 994 times | Joined on Dec 2012
#133
[QUOTE=Hurrian;1208635]
Code:
    if [ $ACT_DEAD -eq 0 ]; then
      drivelist=$(sfdisk -lndq /dev/mmcblk1)
      swapmicro=$(echo "$drivelist" -n | grep Id=82 | awk '/mmcblk1/ {print $1}')
      if [ "$swapmicro" ]; then
        /sbin/swapon $swapmicro
      else
        /sbin/swapon -a
      fi
I used your code but it doesn't works when I try to boot without sd card inserted (stuck on boot). Any solution?