summaryrefslogtreecommitdiffstats
path: root/kickstart
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-03-22 04:37:46 +0100
committerSuren A. Chilingaryan <csa@suren.me>2018-03-22 04:37:46 +0100
commit0b0b9954c2d0602b1e9d0a387d2a195a790f8084 (patch)
treef0a3a26edd280b8fd84945944bd153f411b31fea /kickstart
parente2c7b1305ca8495065dcf40fd2092d7c698dd6ea (diff)
downloadands-0b0b9954c2d0602b1e9d0a387d2a195a790f8084.tar.gz
ands-0b0b9954c2d0602b1e9d0a387d2a195a790f8084.tar.bz2
ands-0b0b9954c2d0602b1e9d0a387d2a195a790f8084.tar.xz
ands-0b0b9954c2d0602b1e9d0a387d2a195a790f8084.zip
Various fixes and provide ADEI admin container...
Diffstat (limited to 'kickstart')
-rwxr-xr-xkickstart/ipmi.sh13
1 files changed, 13 insertions, 0 deletions
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