diff options
author | Christian Belisle <cbelisle@mandriva.com> | 2002-01-21 16:35:01 +0000 |
---|---|---|
committer | Christian Belisle <cbelisle@mandriva.com> | 2002-01-21 16:35:01 +0000 |
commit | c47996a4234f8891786b38aaa164344f677d7bea (patch) | |
tree | 5fffa5a18564d6458af3c6bd4f3472267b2da972 /transfugdrake.pm | |
parent | 55a744832a002bb525ec6ae629e0ad828255a81f (diff) | |
download | transfugdrake-c47996a4234f8891786b38aaa164344f677d7bea.tar transfugdrake-c47996a4234f8891786b38aaa164344f677d7bea.tar.gz transfugdrake-c47996a4234f8891786b38aaa164344f677d7bea.tar.bz2 transfugdrake-c47996a4234f8891786b38aaa164344f677d7bea.tar.xz transfugdrake-c47996a4234f8891786b38aaa164344f677d7bea.zip |
Fix folder name in /mnt
Diffstat (limited to 'transfugdrake.pm')
-rw-r--r-- | transfugdrake.pm | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/transfugdrake.pm b/transfugdrake.pm index fb0522a..beef26d 100644 --- a/transfugdrake.pm +++ b/transfugdrake.pm @@ -115,7 +115,7 @@ sub get_windows_partition { sub mount_partition { my $fstype = $_[0]; my $win_partition = $_[1]; - my $mountpoint = "/mnt/windows"; + my $mountpoint = "/mnt/transfug"; my @mounts; my $mounted = 0; my @tmp; @@ -124,14 +124,13 @@ sub mount_partition { foreach (@mounts) { @tmp = split(' ', $_); - if($tmp[0] eq $win_partition) { $mounted = 1; } - $mountpoint = $tmp[1]; + if($tmp[0] eq $win_partition) { + $mounted = 1; + $mountpoint = $tmp[1]; + } } if(!$mounted) { - if(-e $mountpoint) { - $mountpoint .= '2'; - } mkdir($mountpoint); print "mount -t $fstype $win_partition $mountpoint\n"; |