diff options
author | Denys Vlasenko | 2009-11-09 11:04:54 +0100 |
---|---|---|
committer | Denys Vlasenko | 2009-11-09 11:04:54 +0100 |
commit | 002bdc3e2af27279323d900e5a74607d42724c62 (patch) | |
tree | 26c8e2709f74398080a37ca19d0bb0d5641d180a /examples/var_service/ifplugd_if/run | |
parent | 391dd92ce218dea9a015e6b06f95403772876ac9 (diff) | |
download | busybox-002bdc3e2af27279323d900e5a74607d42724c62.zip busybox-002bdc3e2af27279323d900e5a74607d42724c62.tar.gz |
tweak service examples a bit (less verbose comment in dhcp_if)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'examples/var_service/ifplugd_if/run')
-rwxr-xr-x | examples/var_service/ifplugd_if/run | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/examples/var_service/ifplugd_if/run b/examples/var_service/ifplugd_if/run index 360b75a..2781cf9 100755 --- a/examples/var_service/ifplugd_if/run +++ b/examples/var_service/ifplugd_if/run @@ -1,5 +1,6 @@ #!/bin/sh +#exec >/dev/null exec 2>&1 exec </dev/null @@ -12,9 +13,13 @@ exec \ env - PATH="$PATH" \ softlimit \ setuidgid root \ -ifplugd -apqns -t3 -u9 -d9 -i "$if" -r "$pwd/ifplugd_handler" +ifplugd -apqns -t3 -u8 -d8 -i "$if" -r "$pwd/ifplugd_handler" -# we use -t3 to wake ifplugd up less often +# We use -t3 to wake ifplugd up less often. +# If after three tests (3*3=9 > 8) link state seen to be different, +# the handler will be called. +# IOW: short link losses will be ignored, longer ones +# will trigger DHCP reconfiguration and such (see handler code). #-a Do not up interface automatically #-p Dont run script on daemon startup |