summaryrefslogtreecommitdiffstats
path: root/rescue/tree/etc
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-09-22 08:30:32 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-09-22 08:30:32 +0000
commitc66ff549a5f1d4cae30795c5a7b062eeb7bf80d7 (patch)
treeb134e0872468be2a681bf387fa2cb16c2781ab6a /rescue/tree/etc
parenta55cb686f050961a65db67490a3ea956645f133f (diff)
downloaddrakx-c66ff549a5f1d4cae30795c5a7b062eeb7bf80d7.tar
drakx-c66ff549a5f1d4cae30795c5a7b062eeb7bf80d7.tar.gz
drakx-c66ff549a5f1d4cae30795c5a7b062eeb7bf80d7.tar.bz2
drakx-c66ff549a5f1d4cae30795c5a7b062eeb7bf80d7.tar.xz
drakx-c66ff549a5f1d4cae30795c5a7b062eeb7bf80d7.zip
- fix typo
- add CVS Id
Diffstat (limited to 'rescue/tree/etc')
-rwxr-xr-xrescue/tree/etc/oem-all6
1 files changed, 4 insertions, 2 deletions
diff --git a/rescue/tree/etc/oem-all b/rescue/tree/etc/oem-all
index 7b87a4560..c02d505f3 100755
--- a/rescue/tree/etc/oem-all
+++ b/rescue/tree/etc/oem-all
@@ -1,5 +1,7 @@
#!/usr/bin/perl
+#- $Id$
+
if (shift(@ARGV) ne '-f') {
print "Call it with option -f, but don't fear loosing all your data, this command is dangerous!";
print "
@@ -153,7 +155,7 @@ sub correct_start_end {
my ($cylinder_size, $c_start, $c_end) = ($sectors*$heads*512/1024/1024, undef, undef);
if (abs($cylinder_size*$cylinders-$hd_size)/$hd_size < 0.01) {
$c_start = $$rstart+($keep_start ? 0 : $cylinder_size/$heads);
- $c_end = $cylinder_size*int(1/2+$end/$cylinder_size);
+ $c_end = $cylinder_size * int(1 / 2 + $end / $cylinder_size);
$c_end > $hd_size and $c_end = $hd_size;
$$rstart = $c_end;
} else {
@@ -565,7 +567,7 @@ system "rpm", "--root", "/mnt", "--initdb";
#- copy and install from each cd image.
foreach my $medium (@media) {
- my $rpmsidr = $medium->{rpmsdir};
+ my $rpmsdir = $medium->{rpmsdir};
$rpmsdir =~ s|%{ARCH}.*||; #- only for checking directory presence...
while ($cd && ! -d "/cdrom/$rpmsdir") {
system "unmount", "/dev/$cd";