diff options
Diffstat (limited to 'drakpxelinux.pl')
-rw-r--r-- | drakpxelinux.pl | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drakpxelinux.pl b/drakpxelinux.pl index 0fe0484..701739a 100644 --- a/drakpxelinux.pl +++ b/drakpxelinux.pl @@ -399,16 +399,16 @@ sub remove_item { my $i = ($path->get_indices)[0]; ask_okcancel("Remove $listpxe[$i]{label} PXE entry ?") or return; remove_in_help($listpxe[$i]{label}); - my $k = "$X86/$listpxe[$i]{kernel}"; - my $i = "$X86/$listpxe[$i]{initrd}"; + my $ke = "$X86/$listpxe[$i]{kernel}"; + my $initrdf = "$X86/$listpxe[$i]{initrd}"; if (basename($listpxe[$i]{kernel} ne "$X86/memdisk")) { - print "k: $k\n"; - print "i: $i\n"; - system("rm -vf $k"); - system("rm -vf $i"); + print "k: $ke\n"; + print "initrd: $initrdf\n"; + system("rm -vf $ke"); + system("rm -vf $initrdf"); } else { - print "i: $i\n"; - system("rm -vf $i"); + print "initrd: $initrdf\n"; + system("rm -vf $initrdf"); } $model->remove($iter); splice @listpxe, $i, 1; |