From eba699b1478a28dae0c0ae61857d28815acef3c1 Mon Sep 17 00:00:00 2001 From: zhaoertao Date: Fri, 30 Mar 2012 05:47:32 +0000 Subject: [PATCH] modify the fsp-api action for rpower cycle to support rbootseq git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12071 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/FSPpower.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/perl-xCAT/xCAT/FSPpower.pm b/perl-xCAT/xCAT/FSPpower.pm index be10f2e45..462d3f9bc 100644 --- a/perl-xCAT/xCAT/FSPpower.pm +++ b/perl-xCAT/xCAT/FSPpower.pm @@ -219,8 +219,9 @@ sub powercmd { if($action =~ /^off$/) { $action = "cec_off"; } if($action =~ /^resetsp$/) { $action = "reboot_service_processor"; } if($action =~ /^lowpower$/) { $action = "cec_on_low_power"; } - if($action =~ /^cycle$/) {$action = "cec_reboot";} - if($action !~ /^cec_on_autostart$/ && $action !~ /^cec_off$/ && $action !~ /^cec_on_low_power$/ && $action !~ /^onstandby$/ && $action !~ /^reboot_service_processor$/ && $action !~ /^cec_reboot$/) { + #if($action =~ /^cycle$/) {$action = "cec_reboot";} + if($action =~ /^cycle$/) {$action = "reset";} + if($action !~ /^cec_on_autostart$/ && $action !~ /^cec_off$/ && $action !~ /^cec_on_low_power$/ && $action !~ /^onstandby$/ && $action !~ /^reboot_service_processor$/ && $action !~ /^reset$/) { push @output, [$node_name, "\'$action\' command not supported for $$d[4]", -1 ]; return (\@output); }