[rtems commit] shell: Remove interface down warning in ifconfig

Sebastian Huber sebh at rtems.org
Tue Dec 18 10:18:04 UTC 2012


Module:    rtems
Branch:    master
Commit:    ea4f072ef323fac64abeabc675e07c97b66b695b
Changeset: http://git.rtems.org/rtems/commit/?id=ea4f072ef323fac64abeabc675e07c97b66b695b

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Dec 14 10:23:30 2012 +0100

shell: Remove interface down warning in ifconfig

Whether an interface down is supported or not depends on the interface
driver.

---

 cpukit/libmisc/shell/main_ifconfig.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/cpukit/libmisc/shell/main_ifconfig.c b/cpukit/libmisc/shell/main_ifconfig.c
index dbf1618..d81d8b0 100644
--- a/cpukit/libmisc/shell/main_ifconfig.c
+++ b/cpukit/libmisc/shell/main_ifconfig.c
@@ -218,10 +218,6 @@ static int rtems_shell_main_ifconfig(
     flags |= IFF_UP;
   }
 
-  if (f_down != 0) {
-    printf("Warning: taking interfaces down is not supported\n");
-  }
-
   rc = rtems_bsdnet_ifconfig(iface, SIOCSIFFLAGS, &flags);
   if (rc < 0) {
     printf("Could not set interface flags: %s\n", strerror(errno));




More information about the vc mailing list