aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-07-26 12:47:36 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-07-26 12:47:36 +0200
commitb4d035165f9304e869ec2733ee6ded058c4c9270 (patch)
treedb4ce14f54ff258c23c6beee10e3ba7d4da11125 /docs
parentf0b82142b264c46f6fee2720fdd0d776a127b17d (diff)
downloadbusybox-b4d035165f9304e869ec2733ee6ded058c4c9270.tar.gz
*: s/spaces/tabs/
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/ifupdown_design.txt28
1 files changed, 14 insertions, 14 deletions
diff --git a/docs/ifupdown_design.txt b/docs/ifupdown_design.txt
index 8008e4507..8ab4e51ad 100644
--- a/docs/ifupdown_design.txt
+++ b/docs/ifupdown_design.txt
@@ -10,27 +10,27 @@ for that.
We are doomed to have problems with ifup/ifdown. Just look as this code:
static const struct dhcp_client_t ext_dhcp_clients[] = {
- { "dhcpcd", "<up cmd>", "<down cmd>" },
- { "dhclient", ........ },
- { "pump", ........ },
- { "udhcpc", ........ },
+ { "dhcpcd", "<up cmd>", "<down cmd>" },
+ { "dhclient", ........ },
+ { "pump", ........ },
+ { "udhcpc", ........ },
};
static int dhcp_down(struct interface_defn_t *ifd, execfn *exec)
{
#if ENABLE_FEATURE_IFUPDOWN_EXTERNAL_DHCP
- int i ;
- for (i = 0; i < ARRAY_SIZE(ext_dhcp_clients); i++) {
- if (exists_execable(ext_dhcp_clients[i].name))
- return execute(ext_dhcp_clients[i].stopcmd, ifd, exec);
- }
- bb_error_msg("no dhcp clients found, using static interface shutdown");
- return static_down(ifd, exec);
+ int i ;
+ for (i = 0; i < ARRAY_SIZE(ext_dhcp_clients); i++) {
+ if (exists_execable(ext_dhcp_clients[i].name))
+ return execute(ext_dhcp_clients[i].stopcmd, ifd, exec);
+ }
+ bb_error_msg("no dhcp clients found, using static interface shutdown");
+ return static_down(ifd, exec);
#elif ENABLE_UDHCPC
- return execute("kill "
- "`cat /var/run/udhcpc.%iface%.pid` 2>/dev/null", ifd, exec);
+ return execute("kill "
+ "`cat /var/run/udhcpc.%iface%.pid` 2>/dev/null", ifd, exec);
#else
- return 0; /* no dhcp support */
+ return 0; /* no dhcp support */
#endif
}