POL_Wine_LinkCDROM

Informatie

Creator Bericht
Quentin PÂRIS Anonymous

Information

This installer has been approved by the team.

Informatie

Platforms:
Downloads: 68072
Wine: System

Feedbacks

Omschrijving

Link a real CD-Rom to wine

Usage: POL_Wine_LinkCDROM [letter]

Broncode

#!/bin/bash

if [ "$1" ]; then 
        letter="$1"
else
        letter="w"
fi

[ "$CDROM" = "" ] && POL_Debug_Error "Please select a cdrom first"

DEVNODE="$(mount | grep "$CDROM" | awk '{print $1}')"

cd "$WINEPREFIX/dosdevices"

rm "$letter:" 2> /dev/null
rm "$letter::" 2> /dev/null

ln -s "$CDROM" "$letter:"
ln -s "$DEVNODE" "$letter::"

Contributions

Filters:

Contribute
Member Bericht