aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorerwan <erwan@laptopR1.(none)>2009-03-09 16:24:15 +0100
committererwan <erwan@laptopR1.(none)>2009-03-09 16:24:15 +0100
commit5b7f5086de1c52348434f88812c0c78a698c4e36 (patch)
treed698cb12e839b863c24f3f3068ecc0fe1d87ecd4
parentf2971640d17bf94408baf3d859f511461222f221 (diff)
downloadsyslinux-elf-5b7f5086de1c52348434f88812c0c78a698c4e36.tar.gz
syslinux-elf-5b7f5086de1c52348434f88812c0c78a698c4e36.tar.xz
syslinux-elf-5b7f5086de1c52348434f88812c0c78a698c4e36.zip
hdt: fixing wrong PXELINUX checks
Tests were inverted :(
-rw-r--r--com32/hdt/hdt-cli-pxe.c2
-rw-r--r--com32/hdt/hdt-cli.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/com32/hdt/hdt-cli-pxe.c b/com32/hdt/hdt-cli-pxe.c
index c88d4449..2ad6981a 100644
--- a/com32/hdt/hdt-cli-pxe.c
+++ b/com32/hdt/hdt-cli-pxe.c
@@ -38,7 +38,7 @@
void main_show_pxe(struct s_hardware *hardware,struct s_cli_mode *cli_mode) {
char buffer[81];
memset(buffer,0,sizeof(81));
- if (hardware->sv->filesystem == SYSLINUX_FS_PXELINUX) {
+ if (hardware->sv->filesystem != SYSLINUX_FS_PXELINUX) {
more_printf("You are not currently using PXELINUX\n");
return;
}
diff --git a/com32/hdt/hdt-cli.c b/com32/hdt/hdt-cli.c
index 5b1da6f5..3f714858 100644
--- a/com32/hdt/hdt-cli.c
+++ b/com32/hdt/hdt-cli.c
@@ -45,7 +45,7 @@ void set_mode(struct s_cli_mode *cli_mode, cli_mode_t mode, struct s_hardware *h
break;
case PXE_MODE:
- if (hardware->sv->filesystem == SYSLINUX_FS_PXELINUX) {
+ if (hardware->sv->filesystem != SYSLINUX_FS_PXELINUX) {
more_printf("You are not currently using PXELINUX\n");
break;
}