I noticed that my card was available with fdisk -L as mmcblk0. It was not available with df -h.
The last is caused by not mounting the partitions (automounter off).
So to have the script proper working, mount the partitions first (maybe check really on /dev/mmcblk0p1/2 in the script).