summaryrefslogtreecommitdiff
path: root/usage.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-04-03 18:01:51 +0000
committerEric Andersen <andersen@codepoet.org>2001-04-03 18:01:51 +0000
commitc97ec34370f66771713809ab7da19b7fe923cffe (patch)
tree113cfd14600fe4ccb65e392eeb06e368df13f1ef /usage.h
parent0f0c0b41ced8c30d382a0490719c79371260b9d1 (diff)
downloadbusybox-w32-c97ec34370f66771713809ab7da19b7fe923cffe.tar.gz
busybox-w32-c97ec34370f66771713809ab7da19b7fe923cffe.tar.bz2
busybox-w32-c97ec34370f66771713809ab7da19b7fe923cffe.zip
A patch from Matt Kraai that adds a new 'shutdown' action to busybox init. Now
you can specify an arbitrary behavior for 'ctrlaltdel' without that behavior needing to be a reboot.
Diffstat (limited to '')
-rw-r--r--usage.h21
1 files changed, 15 insertions, 6 deletions
diff --git a/usage.h b/usage.h
index 1ee2ab328..aa7f0af22 100644
--- a/usage.h
+++ b/usage.h
@@ -663,10 +663,15 @@
663"\n" \ 663"\n" \
664" ::sysinit:/etc/init.d/rcS\n" \ 664" ::sysinit:/etc/init.d/rcS\n" \
665" ::askfirst:/bin/sh\n" \ 665" ::askfirst:/bin/sh\n" \
666" ::ctrlaltdel:/sbin/reboot\n" \
667" ::shutdown:/sbin/swapoff -a\n" \
668" ::shutdown:/bin/umount -a -r\n" \
666"\n" \ 669"\n" \
667"if it detects that /dev/console is _not_ a serial console, it will also run:\n" \ 670"if it detects that /dev/console is _not_ a serial console, it will also run:\n" \
668"\n" \ 671"\n" \
669" tty2::askfirst:/bin/sh\n" \ 672" tty2::askfirst:/bin/sh\n" \
673" tty3::askfirst:/bin/sh\n" \
674" tty4::askfirst:/bin/sh\n" \
670"\n" \ 675"\n" \
671"If you choose to use an /etc/inittab file, the inittab entry format is as follows:\n" \ 676"If you choose to use an /etc/inittab file, the inittab entry format is as follows:\n" \
672"\n" \ 677"\n" \
@@ -692,7 +697,7 @@
692" <action>: \n" \ 697" <action>: \n" \
693"\n" \ 698"\n" \
694" Valid actions include: sysinit, respawn, askfirst, wait, \n" \ 699" Valid actions include: sysinit, respawn, askfirst, wait, \n" \
695" once, and ctrlaltdel.\n" \ 700" once, ctrlaltdel, and shutdown.\n" \
696"\n" \ 701"\n" \
697" The available actions can be classified into two groups: actions\n" \ 702" The available actions can be classified into two groups: actions\n" \
698" that are run only once, and actions that are re-run when the specified\n" \ 703" that are run only once, and actions that are re-run when the specified\n" \
@@ -706,9 +711,12 @@
706" 'wait' actions, like 'sysinit' actions, cause init to wait until\n" \ 711" 'wait' actions, like 'sysinit' actions, cause init to wait until\n" \
707" the specified task completes. 'once' actions are asyncronous,\n" \ 712" the specified task completes. 'once' actions are asyncronous,\n" \
708" therefore, init does not wait for them to complete. 'ctrlaltdel'\n" \ 713" therefore, init does not wait for them to complete. 'ctrlaltdel'\n" \
709" actions are run immediately before init causes the system to reboot\n" \ 714" actions are run when the system detects that someone on the system\n" \
710" (unmounting filesystems with a 'ctrlaltdel' action is a very good\n" \ 715" console has pressed the CTRL-ALT-DEL key combination. Typically one\n" \
711" idea).\n" \ 716" wants to run 'reboot' at this point to cause the system to reboot.\n" \
717" Finally the 'shutdown' action specifies the actions to taken when\n" \
718" init is told to reboot. Unmounting filesystems and disabling swap\n" \
719" is a very good here\n" \
712"\n" \ 720"\n" \
713" Run repeatedly actions:\n" \ 721" Run repeatedly actions:\n" \
714"\n" \ 722"\n" \
@@ -759,8 +767,9 @@
759" #::respawn:/sbin/getty 57600 ttyS2\n" \ 767" #::respawn:/sbin/getty 57600 ttyS2\n" \
760" \n" \ 768" \n" \
761" # Stuff to do before rebooting\n" \ 769" # Stuff to do before rebooting\n" \
762" ::ctrlaltdel:/bin/umount -a -r\n" \ 770" ::ctrlaltdel:/sbin/reboot\n" \
763" ::ctrlaltdel:/sbin/swapoff -a\n" 771" ::shutdown:/bin/umount -a -r\n" \
772" ::shutdown:/sbin/swapoff -a\n"
764 773
765#define insmod_trivial_usage \ 774#define insmod_trivial_usage \
766 "[OPTION]... MODULE [symbol=value]..." 775 "[OPTION]... MODULE [symbol=value]..."