Only create the device symlinks the first time around.

This commit is contained in:
Alexandre Julliard 2004-04-15 00:04:32 +00:00
parent fba7149a2d
commit bc2328fcf2
1 changed files with 11 additions and 8 deletions

View File

@ -547,7 +547,6 @@ then
if [ ! -w ~/.wine ]
then
mkdir ~/.wine
mkdir ~/.wine/dosdevices
fi
cp $TMPCONF $LCONF > /dev/null
else
@ -599,13 +598,17 @@ then {
fi
echo "Preparing to install default Wine registry entries..."
# Make sure we are on a Windows drive
ln -s /mnt/fd0 ~/.wine/dosdevices/a:
ln -s $CROOT ~/.wine/dosdevices/c:
ln -s /cdrom ~/.wine/dosdevices/d:
ln -s /tmp ~/.wine/dosdevices/e:
ln -s ~ ~/.wine/dosdevices/f:
ln -s / ~/.wine/dosdevices/z:
# Check if dosdevices exists and create it if necessary
if [ ! -d ~/.wine/dosdevices ]
then
mkdir ~/.wine/dosdevices
ln -s /mnt/fd0 ~/.wine/dosdevices/a:
ln -s $CROOT ~/.wine/dosdevices/c:
ln -s /cdrom ~/.wine/dosdevices/d:
ln -s /tmp ~/.wine/dosdevices/e:
ln -s ~ ~/.wine/dosdevices/f:
ln -s / ~/.wine/dosdevices/z:
fi
echo "Installing default Wine registry entries..."
echo