Commit 74f6c1d8 authored by Joachim Wiedorn's avatar Joachim Wiedorn

Remove obsolete scripts and manpages

parent a250072e
......@@ -22,6 +22,10 @@ lilo (1:23.1-1) unstable; urgency=low
* Use new upstream address in debian/watch.
* Update all debian/lilo.* and debian/lilo-doc.* files.
* Add new debian/lilo-doc.doc-base file.
* Remove lilo.sh wrapper script, used because of devfsd.
* Remove obsolete script lilo_find_mbr and its manpage.
* Remove configured link update-lilo to liloconfig.
* Remove some obsolete manpages.
-- Joachim Wiedorn <ad_debian@joonet.de> Thu, 18 Nov 2010 20:32:02 +0100
......
usr/sbin/liloconfig usr/sbin/update-lilo
#!/bin/sh -e
# if chroot.
if [ "$1" = "-r" -a "$2" != "" ]; then
if [ -c /dev/.devfsd -a ! -c $2/dev/.devfsd ]; then
mount none $2/dev -t devfs
fi
# use "$@" instead of $* so you can do `lilo -C "/etc/spare lilo config"`
$0.real "$@"
if [ -c /dev/.devfsd ]; then
umount $2/dev
fi
else
# use "$@" instead of $* so you can do `lilo -C "/etc/spare lilo config"`
$0.real "$@"
if [ "$1" != "-t" ]; then
rm -f /boot/boot.b.preserved* /boot/boot-text.b.preserved* /boot/boot-menu.b.preserved* /boot/chain.b.preserved* /boot/os2_d.b.preserved* /boot/boot-bmp.b.preserved
fi
fi
#!/usr/bin/perl
my $root_part;
if($#ARGV != -1)
{
$root_part = $ARGV[0];
}
else
{
$root_part = `awk '{ if (\$2=="/") print \$1}' </etc/fstab`;
}
my $lilo_root_part;
foreach $item (split("\n", $root_part))
{
if(not $item =~ /#/)
{
$lilo_root_part = $item;
}
}
if($lilo_root_part =~ /\/dev\/md/)
{
my $mdname = $lilo_root_part;
$mdname =~ s/\/dev\///;
$mdname =~ s/\///;
my $md = `grep $mdname /proc/mdstat`;
my @devices = split(" ", $md);
@devices = sort(@devices[4..$#devices]);
$lilo_root_part = "/dev/" . $devices[0];
$lilo_root_part =~ s/\[.*$//;
}
my $lilo_root_disk = $lilo_root_part;
$lilo_root_disk =~ s/\d+$//;
$lilo_root_disk =~ s/part$/disc/;
print $lilo_root_disk . "\n";
.\" Hey, EMACS: -*- nroff -*-
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH LILO_FIND_MBR 8 "july 9, 2003"
.\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
.\" .nh disable hyphenation
.\" .hy enable hyphenation
.\" .ad l left justify
.\" .ad b justify to both left and right margins
.\" .nf disable filling
.\" .fi enable filling
.\" .br insert line break
.\" .sp <n> insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
.SH NAME
lilo_find_mbr \- a simple script that prints the block device containing the main MBR
.SH SYNOPSIS
.B lilo_find_mbr
.br
.SH DESCRIPTION
.SH OPTIONS
.SH SEE ALSO
.br
For information about LILO, see /usr/share/doc/lilo and /usr/share/doc/lilo-doc.
.SH AUTHOR
This manual page was written by Andrés Roldán <aroldan@fluidsignal.com> for the
Debian GNU/Linux project.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment