Updated init script to better handle multiple optical drives
This commit is contained in:
parent
5ad76c20bb
commit
2ce2a211d6
@ -57,7 +57,7 @@ find_and_mount_media() {
|
||||
echo -e " ${BOLD}${BLUE}*${NORM} Searching for the CRUX media..."
|
||||
mkdir -p ${MEDIAMNT}
|
||||
CRUXMEDIA=""
|
||||
CDROM_DEVICES="`grep 'drive name:' /proc/sys/dev/cdrom/info | awk '{ print $3 }'`"
|
||||
CDROM_DEVICES="`awk '/drive name:/ { for (i=3;i<=NF;i++) { printf("%s ", $i) } }' /proc/sys/dev/cdrom/info`"
|
||||
BLOCK_DEVICES="`grep -E '[sh]d' /proc/partitions | awk '{ print $4 }'`"
|
||||
for DEV in $CDROM_DEVICES $BLOCK_DEVICES
|
||||
do
|
||||
|
Loading…
x
Reference in New Issue
Block a user