POL_Wine_LinkCDROM

Informations

Creator Message
Quentin PÂRIS Anonymous

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 75142
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

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com