examples/shutdown-1.0: an example of reboot which does not signal init

For one, my inits know nothing about the concept of "shutting down the system".

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2018-04-20 15:12:52 +02:00
parent e09c426456
commit c21dfaf836
7 changed files with 475 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
#!/bin/sh
gcc -Wall -Os -o hardshutdown hardshutdown.c
strip hardshutdown
#or:
#diet gcc -Wall -o hardshutdown hardshutdown.c
#elftrunc hardshutdown