diff options
| author | Ramakrishnan G <rameshg87@gmail.com> | 2015-05-31 23:30:02 -0700 |
|---|---|---|
| committer | SHIGEMATSU Mitsuhiro <shigematsu.mitsuhiro@lab.ntt.co.jp> | 2015-06-02 12:41:06 +0000 |
| commit | 8faa3ae9d5fc1d2bff1478b42b071f3efad2689f (patch) | |
| tree | 3c4b8ee8509b63cee3943f49315d47b284fc1fc0 /ironic_python_agent/shell | |
| parent | 141191bcfac852486885011836f8512914e14052 (diff) | |
| download | ironic-python-agent-8faa3ae9d5fc1d2bff1478b42b071f3efad2689f.tar.gz | |
Make sure sysrq functions are enabled in reboot.sh
This commit echoes '1' to >/proc/sys/kernel/sysrq to
make sure that sysrq functions are enabled before
invoking them.
Change-Id: I88697efbc1bd0dec5ed4cbcd8d89b0b5d0734bdd
Diffstat (limited to 'ironic_python_agent/shell')
| -rw-r--r-- | ironic_python_agent/shell/reboot.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ironic_python_agent/shell/reboot.sh b/ironic_python_agent/shell/reboot.sh index 9d758464..beb7fce7 100644 --- a/ironic_python_agent/shell/reboot.sh +++ b/ironic_python_agent/shell/reboot.sh @@ -18,5 +18,8 @@ set -e +# Make sure all functions of sysrq is enabled. +echo "1" > /proc/sys/kernel/sysrq + echo "s" > /proc/sysrq-trigger echo "b" > /proc/sysrq-trigger |
