[PATCH] devfs.sh-ide-floppy

This commit is contained in:
md@Linux.IT 2004-04-16 23:58:02 -07:00 committed by Greg KH
parent 1352a36fbe
commit af5b5178fa

View file

@ -39,6 +39,8 @@ if [ -z "$3" -a -f /proc/ide/${1}/media ]; then
MEDIA=`cat /proc/ide/${1}/media`
if [ "${MEDIA}" = "cdrom" ]; then
echo ide/host${HOST}/bus${BUS}/target${TARGET}/lun0/cd cdroms/cdrom`get_dev_number $1 cdrom`
elif [ "${MEDIA}" = "floppy" ]; then
echo ide/host${HOST}/bus${BUS}/target${TARGET}/lun0/disc floppies/floppy`get_dev_number $1 floppy`/disc
elif [ "${MEDIA}" = "disk" ]; then
echo ide/host${HOST}/bus${BUS}/target${TARGET}/lun0/disc discs/disc`get_dev_number $1 disk`/disc
fi