summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorStew Benedict <stewb@mandriva.org>2004-06-23 17:16:46 +0000
committerStew Benedict <stewb@mandriva.org>2004-06-23 17:16:46 +0000
commit4bb9d4a6e332967f0422f4a6ff3349a6134183c3 (patch)
tree160baafd604f7e567471b5aea915ffaf1ac822d1 /perl-install
parent85bc1c2e9f2211be40f7a2788a466db7abf03a0b (diff)
downloaddrakx-4bb9d4a6e332967f0422f4a6ff3349a6134183c3.tar
drakx-4bb9d4a6e332967f0422f4a6ff3349a6134183c3.tar.gz
drakx-4bb9d4a6e332967f0422f4a6ff3349a6134183c3.tar.bz2
drakx-4bb9d4a6e332967f0422f4a6ff3349a6134183c3.tar.xz
drakx-4bb9d4a6e332967f0422f4a6ff3349a6134183c3.zip
code cleanup per Pixel
Diffstat (limited to 'perl-install')
-rwxr-xr-xperl-install/standalone/drakTermServ7
1 files changed, 1 insertions, 6 deletions
diff --git a/perl-install/standalone/drakTermServ b/perl-install/standalone/drakTermServ
index 78031be88..8dd512658 100755
--- a/perl-install/standalone/drakTermServ
+++ b/perl-install/standalone/drakTermServ
@@ -59,12 +59,7 @@ my $server_ip = get_ip_from_sys();
my $changes_made = 0;
my $client_cfg = "/etc/dhcpd.conf.etherboot.clients";
my $tftpboot = "/var/lib/tftpboot";
-my @kernels = grep { /vmlinuz-/ } all("/boot");
-my $i = 0;
-foreach (@kernels) {
- splice(@kernels, $i, 1) if -l "/boot/$_";
- $i++;
-}
+my @kernels = grep { /vmlinuz-/ && ! -l "/boot/$_" } all("/boot");
#- make sure terminal server and friends are installed
my $ts = system("rpm -q terminal-server > /dev/null");