blob: 01bdde1189cef9bd216ab36be0d0fc82c82a40c7 [file]
#! /bin/sh
if /sbin/other-os-flash-util -s /dev/ps3flash >/dev/null 2>&1 ; then
echo /dev/ps3flash;
exit 0;
fi
# Compatibility with the old storage driver
DRIVES=`cd /sys/block && ls -d sd*`
for d in $DRIVES; do
if [ `cat /sys/block/$d/device/type` = 14 ]; then
if /sbin/other-os-flash-util -s /dev/$d >/dev/null 2>&1 ; then
echo /dev/$d;
exit 0;
fi
fi
done
exit 1;