diff options
author | Stew Benedict <stewb@mandriva.org> | 2004-06-23 17:16:46 +0000 |
---|---|---|
committer | Stew Benedict <stewb@mandriva.org> | 2004-06-23 17:16:46 +0000 |
commit | 4bb9d4a6e332967f0422f4a6ff3349a6134183c3 (patch) | |
tree | 160baafd604f7e567471b5aea915ffaf1ac822d1 /perl-install | |
parent | 85bc1c2e9f2211be40f7a2788a466db7abf03a0b (diff) | |
download | drakx-backup-do-not-use-4bb9d4a6e332967f0422f4a6ff3349a6134183c3.tar drakx-backup-do-not-use-4bb9d4a6e332967f0422f4a6ff3349a6134183c3.tar.gz drakx-backup-do-not-use-4bb9d4a6e332967f0422f4a6ff3349a6134183c3.tar.bz2 drakx-backup-do-not-use-4bb9d4a6e332967f0422f4a6ff3349a6134183c3.tar.xz drakx-backup-do-not-use-4bb9d4a6e332967f0422f4a6ff3349a6134183c3.zip |
code cleanup per Pixel
Diffstat (limited to 'perl-install')
-rwxr-xr-x | perl-install/standalone/drakTermServ | 7 |
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"); |