Developing lightweight computation at the DSG edge
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Quick Mesh Project
qMp packages
Commits
b9a20de0
Commit
b9a20de0
authored
Nov 09, 2012
by
p4u
Browse files
New function for qmp-control to perform hard reboots
parent
1265cdbe
Changes
1
Hide whitespace changes
Inline
Side-by-side
packages/qmp-small-node/files/etc/qmp/qmp_control.sh
View file @
b9a20de0
...
...
@@ -80,9 +80,14 @@ unpublish_hna() {
upgrade
()
{
qmp_update_upgrade_system
$1
hard_reboot
}
hard_reboot
()
{
echo
"System is gonna be rebooted now!"
echo
1
>
/proc/sys/kernel/sysrq
echo
b
>
/proc/sysrq-trigger
}
help
()
{
echo
"Use:
$0
<function> [params]"
...
...
@@ -98,6 +103,7 @@ help() {
echo
" apply_netserver : Start/stop nerserver depending on qmp configuration"
echo
" enable_ns_ppt : Enable POE passtrought from NanoStation M2/5 devices. Be careful with this"
echo
" upgrade [URL] : Upgrade system. By default to the last version, but image url can be provided to force"
echo
" hard_reboot : Performs a hard reboot (using kernel sysrq)"
echo
""
exit
1
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment