summaryrefslogtreecommitdiff
path: root/Source/Applications/Shell/Applets/halt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Applications/Shell/Applets/halt.cpp')
-rw-r--r--Source/Applications/Shell/Applets/halt.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/Applications/Shell/Applets/halt.cpp b/Source/Applications/Shell/Applets/halt.cpp
new file mode 100644
index 0000000..d7dedef
--- /dev/null
+++ b/Source/Applications/Shell/Applets/halt.cpp
@@ -0,0 +1,13 @@
+#include <App/ShellApp.proto.h>
+#include <Binding/Sys.ns.h>
+
+class halt : public ShellApp {
+ public:
+ halt() : ShellApp("halt", "Halt the system") {}
+ int run() {
+ outvt << "Halting system...\n";
+ Sys::halt();
+ }
+};
+
+APP(halt);