From 0b0b9954c2d0602b1e9d0a387d2a195a790f8084 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 22 Mar 2018 04:37:46 +0100 Subject: Various fixes and provide ADEI admin container... --- kickstart/ipmi.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'kickstart') diff --git a/kickstart/ipmi.sh b/kickstart/ipmi.sh index 4ccd749..4571fb0 100755 --- a/kickstart/ipmi.sh +++ b/kickstart/ipmi.sh @@ -65,6 +65,17 @@ function reboot { sleep $sleep } +function bios { + host=$1 + + ipmi $host power off + sleep 10 + ipmi $host chassis bootdev bios + sleep $sleep + ipmi $host power on +} + + function status { host=$1 @@ -117,6 +128,8 @@ elif [[ "$1" =~ reboot ]]; then action="reboot" elif [[ "$1" =~ boot ]]; then action="boot" +elif [[ "$1" =~ bios ]]; then + action="bios" elif [[ "$1" =~ status ]]; then action="status" elif [[ "$1" =~ wait ]]; then -- cgit v1.2.3