diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-11-07 17:54:44 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-11-07 17:54:44 +0100 |
commit | bf40f564ae8cada5e9d7fce148aad138842984f6 (patch) | |
tree | edafd161d99bdb73754f1004ef0c13639f86b2e4 | |
parent | 5a34d021cb07a13cfd7dbade66e33cba2aa295d4 (diff) | |
download | busybox-w32-bf40f564ae8cada5e9d7fce148aad138842984f6.tar.gz busybox-w32-bf40f564ae8cada5e9d7fce148aad138842984f6.tar.bz2 busybox-w32-bf40f564ae8cada5e9d7fce148aad138842984f6.zip |
tweak examples
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | examples/mdev_fat.conf | 5 | ||||
-rwxr-xr-x | examples/var_service/ifplugd_if/run | 20 |
2 files changed, 14 insertions, 11 deletions
diff --git a/examples/mdev_fat.conf b/examples/mdev_fat.conf index f15a1705f..9ac333608 100644 --- a/examples/mdev_fat.conf +++ b/examples/mdev_fat.conf | |||
@@ -16,9 +16,9 @@ | |||
16 | null root:root 666 @chmod 666 $MDEV | 16 | null root:root 666 @chmod 666 $MDEV |
17 | zero root:root 666 | 17 | zero root:root 666 |
18 | full root:root 666 | 18 | full root:root 666 |
19 | random root:root 666 | 19 | random root:root 444 |
20 | urandom root:root 444 | 20 | urandom root:root 444 |
21 | hwrandom root:root 660 | 21 | hwrandom root:root 444 |
22 | grsec root:root 660 | 22 | grsec root:root 660 |
23 | 23 | ||
24 | kmem root:root 640 | 24 | kmem root:root 640 |
@@ -73,6 +73,7 @@ ttyLTM[0-9] root:dialout 660 @ln -sf $MDEV modem | |||
73 | ttySHSF[0-9] root:dialout 660 @ln -sf $MDEV modem | 73 | ttySHSF[0-9] root:dialout 660 @ln -sf $MDEV modem |
74 | slamr root:dialout 660 @ln -sf $MDEV slamr0 | 74 | slamr root:dialout 660 @ln -sf $MDEV slamr0 |
75 | slusb root:dialout 660 @ln -sf $MDEV slusb0 | 75 | slusb root:dialout 660 @ln -sf $MDEV slusb0 |
76 | |||
76 | fuse root:root 666 | 77 | fuse root:root 666 |
77 | 78 | ||
78 | # dri device | 79 | # dri device |
diff --git a/examples/var_service/ifplugd_if/run b/examples/var_service/ifplugd_if/run index 44ddbc48d..360b75a3f 100755 --- a/examples/var_service/ifplugd_if/run +++ b/examples/var_service/ifplugd_if/run | |||
@@ -7,26 +7,28 @@ pwd="$PWD" | |||
7 | 7 | ||
8 | if="${PWD##*/ifplugd_}" | 8 | if="${PWD##*/ifplugd_}" |
9 | 9 | ||
10 | echo "* Starting ifplugd [$$]" | 10 | echo "* Starting ifplugd on $if [$$]" |
11 | exec \ | 11 | exec \ |
12 | env - PATH="$PATH" \ | 12 | env - PATH="$PATH" \ |
13 | softlimit \ | 13 | softlimit \ |
14 | setuidgid root \ | 14 | setuidgid root \ |
15 | ifplugd -apq -n -s -i "$if" -r "$pwd/ifplugd_handler" | 15 | ifplugd -apqns -t3 -u9 -d9 -i "$if" -r "$pwd/ifplugd_handler" |
16 | 16 | ||
17 | # we use -t3 to wake ifplugd up less often | ||
18 | |||
19 | #-a Do not up interface automatically | ||
20 | #-p Dont run script on daemon startup | ||
21 | #-q Dont run script on daemon quit | ||
17 | #-n Do not daemonize | 22 | #-n Do not daemonize |
18 | #-s Do not log to syslog | 23 | #-s Do not log to syslog |
24 | #-t SECS Poll time in seconds | ||
25 | #-u SECS Delay before running script after link up | ||
26 | #-d SECS Delay after link down | ||
19 | #-i IFACE Interface | 27 | #-i IFACE Interface |
28 | #-r PROG Script to run | ||
20 | #-f/-F Treat link detection error as link down/link up (otherwise exit on error) | 29 | #-f/-F Treat link detection error as link down/link up (otherwise exit on error) |
21 | #-a Do not up interface automatically | ||
22 | #-M Monitor creation/destruction of interface (otherwise it must exist) | 30 | #-M Monitor creation/destruction of interface (otherwise it must exist) |
23 | #-r PROG Script to run | ||
24 | #-x ARG Extra argument for script | 31 | #-x ARG Extra argument for script |
25 | #-I Dont exit on nonzero exit code from script | 32 | #-I Dont exit on nonzero exit code from script |
26 | #-p Dont run script on daemon startup | ||
27 | #-q Dont run script on daemon quit | ||
28 | #-l Run script on startup even if no cable is detected | 33 | #-l Run script on startup even if no cable is detected |
29 | #-t SECS Poll time in seconds | ||
30 | #-u SECS Delay before running script after link up | ||
31 | #-d SECS Delay after link down | ||
32 | #-m MODE API mode (mii, priv, ethtool, wlan, auto) | 34 | #-m MODE API mode (mii, priv, ethtool, wlan, auto) |