|
|
@ -139,12 +139,17 @@ devicelist(){
|
|
|
|
DEVICES="$DEVICES /dev/sd*"
|
|
|
|
DEVICES="$DEVICES /dev/sd*"
|
|
|
|
# IDE devices
|
|
|
|
# IDE devices
|
|
|
|
DEVICES="$DEVICES /dev/hd*"
|
|
|
|
DEVICES="$DEVICES /dev/hd*"
|
|
|
|
|
|
|
|
# virtio devices
|
|
|
|
|
|
|
|
DEVICES="$DEVICES /dev/vd*"
|
|
|
|
# USB using the USB Block Driver
|
|
|
|
# USB using the USB Block Driver
|
|
|
|
DEVICES="$DEVICES /dev/ubd* /dev/ubd/*"
|
|
|
|
DEVICES="$DEVICES /dev/ubd* /dev/ubd/*"
|
|
|
|
# iSeries devices
|
|
|
|
# iSeries devices
|
|
|
|
DEVICES="$DEVICES /dev/iseries/vcd*"
|
|
|
|
DEVICES="$DEVICES /dev/iseries/vcd*"
|
|
|
|
# builtin mmc/sd card reader devices
|
|
|
|
# builtin mmc/sd card reader devices
|
|
|
|
DEVICES="$DEVICES /dev/mmcblk* /dev/mmcblk*/*"
|
|
|
|
DEVICES="$DEVICES /dev/mmcblk* /dev/mmcblk*/*"
|
|
|
|
|
|
|
|
# fallback scanning, this might scan something twice, but it's better than
|
|
|
|
|
|
|
|
# failing to boot.
|
|
|
|
|
|
|
|
[ -e /proc/partitions ] && DEVICES="${DEVICES} $(awk -r '/([0-9]+[[:space:]]+)/{print "/dev/" $4}' /proc/partitions)"
|
|
|
|
echo ${DEVICES}
|
|
|
|
echo ${DEVICES}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|