[PATCH] ifup: ifdown for network interface with mapped configuration
Richard Genoud
richard.genoud at gmail.com
Thu Apr 25 10:38:44 UTC 2013
2012/11/25 Matthias Loy <matthias.loy at hbm.com>:
> Hello,
>
> we are using ifup from busy box in our embedded devices. In order to
> reconfigure network interfaces we call ifdown, change the configuration
> files and call ifup again. We found that ifdown does not work on mapped
> configurations like eth1-dhcp or dhcp-manual. ifup is working fine.
>
> Attached you find a small patch solving our problem. Is this ok for you?
>
> regards,
> Matthias Loy
I agree with you.
IMHO,
ifdown -a
should bring down the interfaces that
ifup -a
has brought up.
With mappings, that's not the case.
Without your patch, we must do something like :
for i in `cat /var/run/ifstate` ; do ifdown $i ; done
Could this patch be included ?
Richard.
More information about the busybox
mailing list