What about

```
if [ -b /dev/mmcblk1p1 ]; then
    (symlink this)
else if [ -b /dev/mmcblk1 ]; then
    (symlink this)
else
    (handle error?)
fi
```