OpenELEC/OpenELEC.tv — pull request #2528 by rantpaste (2013-08-17 22:25:05+00:00)
Title: Added wildcard to mmcblk/loop if statement

This wound me up no end until I realised it was only checking for mmcblk0. My chromebook has mmcblk0 in use so the SD card was showing up as mmcblk1. It's also not inconceivable for people to have more than one SD card plugged in at once (or more than one loopback device, for that matter).

Note that I did change from sh to bash - I see no reason why this would be a problem but maybe someone else does?