From 058cceb692d5230b8b0d61bc852f36d05ae6cdf5 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 14 Jul 2008 15:33:06 +0000 Subject: [PATCH] -Add floppy parameter to rsetboot command git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1881 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/Usage.pm | 2 +- xCAT-server/lib/xcat/plugins/ipmi.pm | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/Usage.pm b/perl-xCAT/xCAT/Usage.pm index 70a1c4373..258d0f973 100644 --- a/perl-xCAT/xCAT/Usage.pm +++ b/perl-xCAT/xCAT/Usage.pm @@ -43,7 +43,7 @@ my %usage = ( PPC specific: rinv [bus|config|serial|model|firm|all]", "rsetboot" => -"Usage: rsetboot [net|hd|cd|def|stat] [-V|--verbose] +"Usage: rsetboot [net|hd|cd|floppy|def|stat] [-V|--verbose] rsetboot [-h|--help|-v|--version]", "rbootseq" => "Usage: rbootseq [hd0|hd1|hd2|hd3|net|iscsi|usbflash|floppy|none],... diff --git a/xCAT-server/lib/xcat/plugins/ipmi.pm b/xCAT-server/lib/xcat/plugins/ipmi.pm index 335b9a6cc..3e5650939 100644 --- a/xCAT-server/lib/xcat/plugins/ipmi.pm +++ b/xCAT-server/lib/xcat/plugins/ipmi.pm @@ -1162,6 +1162,7 @@ sub setboot { 2 => 'Hard Drive', 5 => 'CD/DVD', 6 => 'BIOS Setup', + 15 => 'Floppy' ); #This disables the 60 second timer @@ -1179,6 +1180,9 @@ sub setboot { elsif ($subcommand eq "cd" ) { @cmd=(0x08,0x5,0x80,0x14,0x0,0x0,0x0); } + elsif ($subcommand eq "floppy" ) { + @cmd=(0x08,0x5,0x80,0x3c,0x0,0x0,0x0); + } elsif ($subcommand =~ m/^def/) { @cmd=(0x08,0x5,0x0,0x0,0x0,0x0,0x0); }