POL_Wine_LinkCDROM

Informations

Creator Message
Quentin PÂRIS
Admin

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 58137
Wine: System

Feedbacks

Description

Link a real CD-Rom to wine

Usage: POL_Wine_LinkCDROM [letter]

Source code

#!/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 Message