aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--networking/ifupdown.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index a8a746453..5809380af 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -545,6 +545,15 @@ static int dhcp_up(struct interface_defn_t *ifd, execfn *exec)
545 return(0); 545 return(0);
546} 546}
547 547
548static int bootp_down(struct interface_defn_t *ifd, execfn *exec)
549{
550#ifdef CONFIG_FEATURE_IFUPDOWN_IP
551 return(execute("ip link set %iface% down", ifd, exec));
552#else
553 return(execute("ifconfig %iface% down", ifd, exec));
554#endif
555}
556
548static int dhcp_down(struct interface_defn_t *ifd, execfn *exec) 557static int dhcp_down(struct interface_defn_t *ifd, execfn *exec)
549{ 558{
550 int result = 0; 559 int result = 0;
@@ -567,15 +576,6 @@ static int bootp_up(struct interface_defn_t *ifd, execfn *exec)
567 "--returniffail --serverbcast", ifd, exec)); 576 "--returniffail --serverbcast", ifd, exec));
568} 577}
569 578
570static int bootp_down(struct interface_defn_t *ifd, execfn *exec)
571{
572#ifdef CONFIG_FEATURE_IFUPDOWN_IP
573 return(execute("ip link set %iface% down", ifd, exec));
574#else
575 return(execute("ifconfig %iface% down", ifd, exec));
576#endif
577}
578
579static int ppp_up(struct interface_defn_t *ifd, execfn *exec) 579static int ppp_up(struct interface_defn_t *ifd, execfn *exec)
580{ 580{
581 return( execute("pon [[%provider%]]", ifd, exec)); 581 return( execute("pon [[%provider%]]", ifd, exec));