diff options
author | John Beppu <beppu@lbox.org> | 2001-04-05 20:03:33 +0000 |
---|---|---|
committer | John Beppu <beppu@lbox.org> | 2001-04-05 20:03:33 +0000 |
commit | 79359d87e86963607ea11dddd9b18cb43896b765 (patch) | |
tree | 1e24c8165d32a7e892f3461abd87f7aa7acafb4b | |
parent | 94e505485e7cd3a4061371774d9d66c65a053887 (diff) | |
download | busybox-w32-79359d87e86963607ea11dddd9b18cb43896b765.tar.gz busybox-w32-79359d87e86963607ea11dddd9b18cb43896b765.tar.bz2 busybox-w32-79359d87e86963607ea11dddd9b18cb43896b765.zip |
- autodocifier.pl :: continuation() was modified such that '#'
is handled correctly.
-rwxr-xr-x | docs/autodocifier.pl | 6 | ||||
-rw-r--r-- | docs/busybox.pod | 69 |
2 files changed, 58 insertions, 17 deletions
diff --git a/docs/autodocifier.pl b/docs/autodocifier.pl index c119215d4..9133afb98 100755 --- a/docs/autodocifier.pl +++ b/docs/autodocifier.pl | |||
@@ -11,7 +11,7 @@ sub continuation { | |||
11 | while (<$fh>) { | 11 | while (<$fh>) { |
12 | my $s = $_; | 12 | my $s = $_; |
13 | $s =~ s/\\\s*$//; | 13 | $s =~ s/\\\s*$//; |
14 | $s =~ s/#.*$//; | 14 | #$s =~ s/#.*$//; |
15 | push @line, $s; | 15 | push @line, $s; |
16 | last unless (/\\\s*$/); | 16 | last unless (/\\\s*$/); |
17 | } | 17 | } |
@@ -31,7 +31,7 @@ sub beautify { | |||
31 | s/"//g; | 31 | s/"//g; |
32 | s/%/%%/g; | 32 | s/%/%%/g; |
33 | s/\$/\\\$/g; | 33 | s/\$/\\\$/g; |
34 | eval qq[ sprintf(qq#$_#) ] | 34 | eval qq[ sprintf(qq{$_}) ] |
35 | } @line | 35 | } @line |
36 | ); | 36 | ); |
37 | return $text; | 37 | return $text; |
@@ -275,4 +275,4 @@ John BEPPU <beppu@lineo.com> | |||
275 | 275 | ||
276 | =cut | 276 | =cut |
277 | 277 | ||
278 | # $Id: autodocifier.pl,v 1.18 2001/04/05 19:35:17 beppu Exp $ | 278 | # $Id: autodocifier.pl,v 1.19 2001/04/05 20:03:33 beppu Exp $ |
diff --git a/docs/busybox.pod b/docs/busybox.pod index cdf96bcc9..daee0f283 100644 --- a/docs/busybox.pod +++ b/docs/busybox.pod | |||
@@ -631,7 +631,8 @@ Example: | |||
631 | 631 | ||
632 | $ fbset | 632 | $ fbset |
633 | mode 1024x768-76 | 633 | mode 1024x768-76 |
634 | geometry 1024 768 1024 768 16 | 634 | # D: 78.653 MHz, H: 59.949 kHz, V: 75.694 Hz |
635 | geometry 1024 768 1024 768 16 | ||
635 | timings 12714 128 32 16 4 128 4 | 636 | timings 12714 128 32 16 4 128 4 |
636 | accel false | 637 | accel false |
637 | rgba 5/11,6/5,5/0,0/0 | 638 | rgba 5/11,6/5,5/0,0/0 |
@@ -738,6 +739,7 @@ Parse command options | |||
738 | Example: | 739 | Example: |
739 | 740 | ||
740 | $ cat getopt.test | 741 | $ cat getopt.test |
742 | #!/bin/sh | ||
741 | GETOPT=`getopt -o ab:c:: --long a-long,b-long:,c-long:: \ | 743 | GETOPT=`getopt -o ab:c:: --long a-long,b-long:,c-long:: \ |
742 | -n 'example.busybox' -- $@` | 744 | -n 'example.busybox' -- $@` |
743 | if [ $? != 0 ] ; then exit 1 ; fi | 745 | if [ $? != 0 ] ; then exit 1 ; fi |
@@ -939,10 +941,15 @@ it has the following default behavior: | |||
939 | 941 | ||
940 | ::sysinit:/etc/init.d/rcS | 942 | ::sysinit:/etc/init.d/rcS |
941 | ::askfirst:/bin/sh | 943 | ::askfirst:/bin/sh |
944 | ::ctrlaltdel:/sbin/reboot | ||
945 | ::shutdown:/sbin/swapoff -a | ||
946 | ::shutdown:/bin/umount -a -r | ||
942 | 947 | ||
943 | if it detects that /dev/console is _not_ a serial console, it will also run: | 948 | if it detects that /dev/console is _not_ a serial console, it will also run: |
944 | 949 | ||
945 | tty2::askfirst:/bin/sh | 950 | tty2::askfirst:/bin/sh |
951 | tty3::askfirst:/bin/sh | ||
952 | tty4::askfirst:/bin/sh | ||
946 | 953 | ||
947 | If you choose to use an /etc/inittab file, the inittab entry format is as follows: | 954 | If you choose to use an /etc/inittab file, the inittab entry format is as follows: |
948 | 955 | ||
@@ -968,7 +975,7 @@ If you choose to use an /etc/inittab file, the inittab entry format is as follow | |||
968 | <action>: | 975 | <action>: |
969 | 976 | ||
970 | Valid actions include: sysinit, respawn, askfirst, wait, | 977 | Valid actions include: sysinit, respawn, askfirst, wait, |
971 | once, and ctrlaltdel. | 978 | once, ctrlaltdel, and shutdown. |
972 | 979 | ||
973 | The available actions can be classified into two groups: actions | 980 | The available actions can be classified into two groups: actions |
974 | that are run only once, and actions that are re-run when the specified | 981 | that are run only once, and actions that are re-run when the specified |
@@ -982,9 +989,12 @@ If you choose to use an /etc/inittab file, the inittab entry format is as follow | |||
982 | 'wait' actions, like 'sysinit' actions, cause init to wait until | 989 | 'wait' actions, like 'sysinit' actions, cause init to wait until |
983 | the specified task completes. 'once' actions are asyncronous, | 990 | the specified task completes. 'once' actions are asyncronous, |
984 | therefore, init does not wait for them to complete. 'ctrlaltdel' | 991 | therefore, init does not wait for them to complete. 'ctrlaltdel' |
985 | actions are run immediately before init causes the system to reboot | 992 | actions are run when the system detects that someone on the system |
986 | (unmounting filesystems with a 'ctrlaltdel' action is a very good | 993 | console has pressed the CTRL-ALT-DEL key combination. Typically one |
987 | idea). | 994 | wants to run 'reboot' at this point to cause the system to reboot. |
995 | Finally the 'shutdown' action specifies the actions to taken when | ||
996 | init is told to reboot. Unmounting filesystems and disabling swap | ||
997 | is a very good here | ||
988 | 998 | ||
989 | Run repeatedly actions: | 999 | Run repeatedly actions: |
990 | 1000 | ||
@@ -1007,20 +1017,37 @@ If you choose to use an /etc/inittab file, the inittab entry format is as follow | |||
1007 | 1017 | ||
1008 | Example /etc/inittab file: | 1018 | Example /etc/inittab file: |
1009 | 1019 | ||
1020 | # This is run first except when booting in single-user mode. | ||
1021 | # | ||
1010 | ::sysinit:/etc/init.d/rcS | 1022 | ::sysinit:/etc/init.d/rcS |
1011 | 1023 | ||
1012 | ::askfirst:-/bin/sh | 1024 | # /bin/sh invocations on selected ttys |
1013 | tty2::askfirst:-/bin/sh | 1025 | # |
1026 | # Start an askfirst shell on the console (whatever that may be) | ||
1027 | ::askfirst:-/bin/sh | ||
1028 | # Start an askfirst shell on /dev/tty2-4 | ||
1029 | tty2::askfirst:-/bin/sh | ||
1014 | tty3::askfirst:-/bin/sh | 1030 | tty3::askfirst:-/bin/sh |
1015 | tty4::askfirst:-/bin/sh | 1031 | tty4::askfirst:-/bin/sh |
1016 | 1032 | ||
1033 | # /sbin/getty invocations for selected ttys | ||
1034 | # | ||
1017 | tty4::respawn:/sbin/getty 38400 tty5 | 1035 | tty4::respawn:/sbin/getty 38400 tty5 |
1018 | tty5::respawn:/sbin/getty 38400 tty6 | 1036 | tty5::respawn:/sbin/getty 38400 tty6 |
1019 | 1037 | ||
1020 | 1038 | ||
1021 | 1039 | # Example of how to put a getty on a serial line (for a terminal) | |
1022 | ::ctrlaltdel:/bin/umount -a -r | 1040 | # |
1023 | ::ctrlaltdel:/sbin/swapoff -a | 1041 | #::respawn:/sbin/getty -L ttyS0 9600 vt100 |
1042 | #::respawn:/sbin/getty -L ttyS1 9600 vt100 | ||
1043 | # | ||
1044 | # Example how to put a getty on a modem line. | ||
1045 | #::respawn:/sbin/getty 57600 ttyS2 | ||
1046 | |||
1047 | # Stuff to do before rebooting | ||
1048 | ::ctrlaltdel:/sbin/reboot | ||
1049 | ::shutdown:/bin/umount -a -r | ||
1050 | ::shutdown:/sbin/swapoff -a | ||
1024 | 1051 | ||
1025 | 1052 | ||
1026 | ------------------------------- | 1053 | ------------------------------- |
@@ -1519,7 +1546,8 @@ Netcat opens a pipe to IP:port | |||
1519 | Example: | 1546 | Example: |
1520 | 1547 | ||
1521 | $ nc foobar.somedomain.com 25 | 1548 | $ nc foobar.somedomain.com 25 |
1522 | 220 foobar ESMTP Exim 3.12 help | 1549 | 220 foobar ESMTP Exim 3.12 #1 Sat, 15 Apr 2000 00:03:02 -0600 |
1550 | help | ||
1523 | 214-Commands supported: | 1551 | 214-Commands supported: |
1524 | 214- HELO EHLO MAIL RCPT DATA AUTH | 1552 | 214- HELO EHLO MAIL RCPT DATA AUTH |
1525 | 214 NOOP QUIT RSET HELP | 1553 | 214 NOOP QUIT RSET HELP |
@@ -1717,7 +1745,7 @@ Remove the DIRECTORY(ies), if they are empty. | |||
1717 | 1745 | ||
1718 | Example: | 1746 | Example: |
1719 | 1747 | ||
1720 | 1748 | # rmdir /tmp/foo | |
1721 | 1749 | ||
1722 | ------------------------------- | 1750 | ------------------------------- |
1723 | 1751 | ||
@@ -2152,7 +2180,8 @@ Options: | |||
2152 | Example: | 2180 | Example: |
2153 | 2181 | ||
2154 | $ uname -a | 2182 | $ uname -a |
2155 | Linux debian 2.2.15pre13 | 2183 | Linux debian 2.2.15pre13 #5 Tue Mar 14 16:03:50 MST 2000 i686 unknown |
2184 | |||
2156 | 2185 | ||
2157 | ------------------------------- | 2186 | ------------------------------- |
2158 | 2187 | ||
@@ -2271,6 +2300,18 @@ Example: | |||
2271 | 2300 | ||
2272 | ------------------------------- | 2301 | ------------------------------- |
2273 | 2302 | ||
2303 | =item B<vi> | ||
2304 | |||
2305 | vi [OPTION] [FILE]... | ||
2306 | |||
2307 | edit FILE. | ||
2308 | |||
2309 | Options: | ||
2310 | |||
2311 | -R Read-only- do not write to the file. | ||
2312 | |||
2313 | ------------------------------- | ||
2314 | |||
2274 | =item B<watchdog> | 2315 | =item B<watchdog> |
2275 | 2316 | ||
2276 | watchdog DEV | 2317 | watchdog DEV |
@@ -2511,4 +2552,4 @@ Enrique Zanardi <ezanardi@ull.es> | |||
2511 | 2552 | ||
2512 | =cut | 2553 | =cut |
2513 | 2554 | ||
2514 | # $Id: busybox.pod,v 1.94 2001/04/05 19:41:23 beppu Exp $ | 2555 | # $Id: busybox.pod,v 1.95 2001/04/05 20:03:33 beppu Exp $ |