X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Finit.d%2Fgrml-reboot;fp=etc%2Finit.d%2Fgrml-reboot;h=81ab23aebaba47a7b2eb9cb0200e278251f96b98;hb=a216e231483af45806a84360a4d7bfa97efb28e6;hp=7f14558abe01527f9726f3f437a021c6ad5ef88c;hpb=986780d33b936a9ac190eef9c06f54b41b767c9e;p=grml-etc.git diff --git a/etc/init.d/grml-reboot b/etc/init.d/grml-reboot index 7f14558..81ab23a 100755 --- a/etc/init.d/grml-reboot +++ b/etc/init.d/grml-reboot @@ -49,7 +49,7 @@ if ! $INSTALLED ; then DEVICE="" if [ -n "$CDROM" ] ; then DEVICE="${CDROM##/dev/}" - DEVICE="${DEVICE%%[0-9]*}" + [ -d /sys/block/${DEVICE} ] || DEVICE="${DEVICE%%[0-9]*}" if [ -n "$DEVICE" ] ; then # is it a removable device?