diff options
-rw-r--r-- | drakpxelinux.pl | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drakpxelinux.pl b/drakpxelinux.pl index 9e17139..3341a15 100644 --- a/drakpxelinux.pl +++ b/drakpxelinux.pl @@ -42,14 +42,11 @@ use constant FALSE => 0; use constant TRUE => 1; -sub AmIRoot() { - unless ($> == 0) { - err_dialog(N("Error!"), N("You are not root. Exiting...")) and !$::testing && die; - } +unless ($> == 0) { + err_dialog(N("Error!"), N("You are not root. Exiting...")); + die unless $::testing; } -AmIRoot(); - # ie of entry menu in PXE: #label linux # KERNEL images/vmlinuz |