2 Subject: liloconfig for linux 3.x
3 Author: Joachim Wiedorn <ad_debian at joonet.de>
5 Last-Update: 2012-04-15
7 Add support for linux 3.x in script liloconfig.
10 diff -urN s16/scripts/liloconfig s17/scripts/liloconfig
11 --- s16/scripts/liloconfig 2011-04-09 17:08:01.000000000 +0200
12 +++ s17/scripts/liloconfig 2012-04-15 10:18:15.936797140 +0200
15 # liloconfig - creating a new lilo.conf file
17 -# Copyright 2011 Joachim Wiedorn <ad_debian@joonet.de>
18 +# Copyright 2011-2012 Joachim Wiedorn <ad_debian@joonet.de>
20 # This program is free software; you can redistribute it and/or modify
21 # it under the terms of the GNU General Public License as published by
23 our $idpath = "/dev/disk/by-id";
24 our $uuidpath = "/dev/disk/by-uuid";
25 our $lblpath = "/dev/disk/by-label";
26 -our $template = "/etc/lilo.conf_example";
27 +our $template = "/usr/share/doc/lilo/examples/lilo.example.conf.gz";
29 our $rootpart; # found root part
30 our $root_dev; # /dev/hdX9, /dev/sdX9, /dev/md/*
34 # search for kernel image files
35 - my @vmlinuz = readpipe("/bin/ls -t -1 /boot/vmlinuz-2* 2>/dev/null");
36 + my @vmlinuz = readpipe("/bin/ls -t -1 /boot/vmlinuz-* 2>/dev/null");
38 # append to new lilo.conf
39 open(MYFH_NEW, ">> $liloconfnew") or die "Cannot open file: $!";