forked from Imagelibrary/rtems
shell: Remove interface down warning in ifconfig
Whether an interface down is supported or not depends on the interface driver.
This commit is contained in:
@@ -218,10 +218,6 @@ static int rtems_shell_main_ifconfig(
|
|||||||
flags |= IFF_UP;
|
flags |= IFF_UP;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (f_down != 0) {
|
|
||||||
printf("Warning: taking interfaces down is not supported\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
rc = rtems_bsdnet_ifconfig(iface, SIOCSIFFLAGS, &flags);
|
rc = rtems_bsdnet_ifconfig(iface, SIOCSIFFLAGS, &flags);
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
printf("Could not set interface flags: %s\n", strerror(errno));
|
printf("Could not set interface flags: %s\n", strerror(errno));
|
||||||
|
|||||||
Reference in New Issue
Block a user