summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-07-08 15:45:16 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-07-08 15:45:16 +0000
commite0cc13868a60a1445b526d32b65dd219bd64934d (patch)
tree301e0d7d7a76e72fafb21ed9d65f35cf8b607ee7 /perl-install/any.pm
parent4298a8ac55b6a9341b8d8a8078f8329426519303 (diff)
downloaddrakx-backup-do-not-use-e0cc13868a60a1445b526d32b65dd219bd64934d.tar
drakx-backup-do-not-use-e0cc13868a60a1445b526d32b65dd219bd64934d.tar.gz
drakx-backup-do-not-use-e0cc13868a60a1445b526d32b65dd219bd64934d.tar.bz2
drakx-backup-do-not-use-e0cc13868a60a1445b526d32b65dd219bd64934d.tar.xz
drakx-backup-do-not-use-e0cc13868a60a1445b526d32b65dd219bd64934d.zip
mtools config so that "mdir a:" accesses the usb floppy if one is there
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index b8e5e54cc..2e97c9bc5 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -1176,4 +1176,13 @@ sub config_dvd {
}
}
+sub config_mtools {
+ my ($prefix) = @_;
+ my ($f1, $f2) = detect_devices::floppies_dev();
+ substInFile {
+ s|drive a: file="(.*?)"|drive a: file="/dev/$f1"|;
+ s|drive b: file="(.*?)"|drive b: file="/dev/$f2"| if $f2;
+ } "$prefix/etc/mtools.conf"
+}
+
1;