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-w32-b4d035165f9304e869ec2733ee6ded058c4c9270.tar.gz
busybox-w32-b4d035165f9304e869ec2733ee6ded058c4c9270.tar.bz2
busybox-w32-b4d035165f9304e869ec2733ee6ded058c4c9270.zip
*: 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.
10We are doomed to have problems with ifup/ifdown. Just look as this code: 10We are doomed to have problems with ifup/ifdown. Just look as this code:
11 11
12static const struct dhcp_client_t ext_dhcp_clients[] = { 12static const struct dhcp_client_t ext_dhcp_clients[] = {
13 { "dhcpcd", "<up cmd>", "<down cmd>" }, 13 { "dhcpcd", "<up cmd>", "<down cmd>" },
14 { "dhclient", ........ }, 14 { "dhclient", ........ },
15 { "pump", ........ }, 15 { "pump", ........ },
16 { "udhcpc", ........ }, 16 { "udhcpc", ........ },
17}; 17};
18 18
19static int dhcp_down(struct interface_defn_t *ifd, execfn *exec) 19static int dhcp_down(struct interface_defn_t *ifd, execfn *exec)
20{ 20{
21#if ENABLE_FEATURE_IFUPDOWN_EXTERNAL_DHCP 21#if ENABLE_FEATURE_IFUPDOWN_EXTERNAL_DHCP
22 int i ; 22 int i ;
23 for (i = 0; i < ARRAY_SIZE(ext_dhcp_clients); i++) { 23 for (i = 0; i < ARRAY_SIZE(ext_dhcp_clients); i++) {
24 if (exists_execable(ext_dhcp_clients[i].name)) 24 if (exists_execable(ext_dhcp_clients[i].name))
25 return execute(ext_dhcp_clients[i].stopcmd, ifd, exec); 25 return execute(ext_dhcp_clients[i].stopcmd, ifd, exec);
26 } 26 }
27 bb_error_msg("no dhcp clients found, using static interface shutdown"); 27 bb_error_msg("no dhcp clients found, using static interface shutdown");
28 return static_down(ifd, exec); 28 return static_down(ifd, exec);
29#elif ENABLE_UDHCPC 29#elif ENABLE_UDHCPC
30 return execute("kill " 30 return execute("kill "
31 "`cat /var/run/udhcpc.%iface%.pid` 2>/dev/null", ifd, exec); 31 "`cat /var/run/udhcpc.%iface%.pid` 2>/dev/null", ifd, exec);
32#else 32#else
33 return 0; /* no dhcp support */ 33 return 0; /* no dhcp support */
34#endif 34#endif
35} 35}
36 36