diff options
Diffstat (limited to 'kickstart')
-rwxr-xr-x | kickstart/ipmi.sh | 13 |
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 |