From bbd22e10555ec3af094c32287341c1f61633cebf Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 1 Jul 2002 16:42:21 +0000 Subject: (raw_hd_mount_point): nicer default mount point --- perl-install/diskdrake/smbnfs_gtk.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'perl-install') diff --git a/perl-install/diskdrake/smbnfs_gtk.pm b/perl-install/diskdrake/smbnfs_gtk.pm index e4cf415ed..545d925fd 100644 --- a/perl-install/diskdrake/smbnfs_gtk.pm +++ b/perl-install/diskdrake/smbnfs_gtk.pm @@ -54,7 +54,9 @@ sub raw_hd_options { } sub raw_hd_mount_point { my ($in, $raw_hd) = @_; - diskdrake::interactive::Mount_point_raw_hd($in, $raw_hd, $all_hds, [ "/mnt/" . lc(($raw_hd->{device} =~ /(\w+)$/)[0]) ]); + my ($default) = $raw_hd->{device} =~ m|([^/]+)$|; + $default =~ s/\s+/-/g; + diskdrake::interactive::Mount_point_raw_hd($in, $raw_hd, $all_hds, [ "/mnt/$default" ]); } sub per_entry_info_box { -- cgit v1.2.1