aboutsummaryrefslogtreecommitdiff
path: root/examples/var_service/ifplugd_if/run
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-11-09 11:04:54 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2009-11-09 11:04:54 +0100
commit002bdc3e2af27279323d900e5a74607d42724c62 (patch)
tree26c8e2709f74398080a37ca19d0bb0d5641d180a /examples/var_service/ifplugd_if/run
parent391dd92ce218dea9a015e6b06f95403772876ac9 (diff)
downloadbusybox-w32-002bdc3e2af27279323d900e5a74607d42724c62.tar.gz
busybox-w32-002bdc3e2af27279323d900e5a74607d42724c62.tar.bz2
busybox-w32-002bdc3e2af27279323d900e5a74607d42724c62.zip
tweak service examples a bit (less verbose comment in dhcp_if)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to '')
-rwxr-xr-xexamples/var_service/ifplugd_if/run9
1 files changed, 7 insertions, 2 deletions
diff --git a/examples/var_service/ifplugd_if/run b/examples/var_service/ifplugd_if/run
index 360b75a3f..2781cf9f9 100755
--- a/examples/var_service/ifplugd_if/run
+++ b/examples/var_service/ifplugd_if/run
@@ -1,5 +1,6 @@
1#!/bin/sh 1#!/bin/sh
2 2
3#exec >/dev/null
3exec 2>&1 4exec 2>&1
4exec </dev/null 5exec </dev/null
5 6
@@ -12,9 +13,13 @@ exec \
12env - PATH="$PATH" \ 13env - PATH="$PATH" \
13softlimit \ 14softlimit \
14setuidgid root \ 15setuidgid root \
15ifplugd -apqns -t3 -u9 -d9 -i "$if" -r "$pwd/ifplugd_handler" 16ifplugd -apqns -t3 -u8 -d8 -i "$if" -r "$pwd/ifplugd_handler"
16 17
17# we use -t3 to wake ifplugd up less often 18# We use -t3 to wake ifplugd up less often.
19# If after three tests (3*3=9 > 8) link state seen to be different,
20# the handler will be called.
21# IOW: short link losses will be ignored, longer ones
22# will trigger DHCP reconfiguration and such (see handler code).
18 23
19#-a Do not up interface automatically 24#-a Do not up interface automatically
20#-p Dont run script on daemon startup 25#-p Dont run script on daemon startup