>From dd27e3eafa77b216d940538e38f0442736b67bc7 Mon Sep 17 00:00:00 2001 From: EA Durbin Date: Mon, 2 Apr 2007 18:37:43 -0500 Subject: Create symlinks to cdrom drives --- tools/wineprefixcreate.in | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/tools/wineprefixcreate.in b/tools/wineprefixcreate.in index d5d76dd..b6bb9b3 100644 --- a/tools/wineprefixcreate.in +++ b/tools/wineprefixcreate.in @@ -145,6 +145,27 @@ then [ -d "$WINEPREFIX/drive_c" ] || mkdir "$WINEPREFIX/drive_c" ln -s "../drive_c" "$WINEPREFIX/dosdevices/c:" ln -s "/" "$WINEPREFIX/dosdevices/z:" + + for cdrom in `awk '$2~/cdrom|dvd|cdr/{ print $2 }' /etc/fstab;`; do + cdromno=$(($cdromno + 1)) + case $cdromno in + 1) + ln -s "$cdrom" "$WINEPREFIX/dosdevices/d:" + ;; + 2) + ln -s "$cdrom" "$WINEPREFIX/dosdevices/e:" + ;; + 3) + ln -s "$cdrom" "$WINEPREFIX/dosdevices/f:" + ;; + 4) + ln -s "$cdrom" "$WINEPREFIX/dosdevices/g:" + ;; + *) + ;; + esac + + done fi CROOT="$WINEPREFIX/dosdevices/c:" -- 1.4.1