summaryrefslogtreecommitdiffstats
path: root/drakpxelinux.pl
diff options
context:
space:
mode:
Diffstat (limited to 'drakpxelinux.pl')
-rw-r--r--drakpxelinux.pl4
1 files changed, 1 insertions, 3 deletions
diff --git a/drakpxelinux.pl b/drakpxelinux.pl
index e7178c4..094a8a6 100644
--- a/drakpxelinux.pl
+++ b/drakpxelinux.pl
@@ -207,9 +207,7 @@ sub wizard_add_entry {
help => N("Provide the full path to vmlinuz kernel location") },
],
complete => sub {
- if (any { /^$WPXENAME :/ } cat_($network::pxe::pxelinux_help_file)) {
- err_dialog(N("Error!"), N("Found a similar entry in PXE list labeled: %s.\nChoose another label please", $WPXENAME)) and return 'addimg';
- }
+ test_similar_label($WPXENAME) or return 'addimg';
if (($WPXENAME) !~ /^\w+$/) {
err_dialog(N("Error!"), N("PXE label should be an ASCII word/number without space. Please adjust")) and return 'addimg';
}