summaryrefslogtreecommitdiff
path: root/package/base-files/files/sbin/ifdown
Commit message (Collapse)AuthorAgeFilesLines
* base-files: move network related scripts to a separate package to make the ↵Felix Fietkau2011-10-201-57/+0
| | | | | | transition to netifd easier SVN-Revision: 28495
* base-files: attempt bring up related wifi devices when calling ifup If a ↵Jo-Philipp Wich2011-07-221-9/+13
| | | | | | | | | | | | | | | user invoked /sbin/ifup to bring up an interface, the setup used to fail in case of wireless networks tied to a non-bridged interface definition. Likewise, the bringup of "lan" in the default configuration will reinitialize the bridge but do not re-join the wireless network to it, requiring an extra call to /sbin/wifi (which might not be possible anymore due to a severed link if connected wirelessly). The changeset modifies the "ifup" command to search for related wireless devices and call "wifi up" on them if applicable. This way the commands for wireless and non-wireless interfaces are unified from a cli point of view. The "ifup -a" case has not been changed to keep the logic of the /etc/init.d/network boot sequence. This might be changed later. Solves #9763. SVN-Revision: 27720
* base-files: - use add_dns() and remove_dns() for when changing ↵Jo-Philipp Wich2010-05-301-0/+3
| | | | | | resolv.conf.auto for static or dhcp interfaces - force 0644 permissions when creating resolv.conf.auto, fixes dnsmasq permissions denied problem with pppd interfaces - revert dns servers in /sbin/ifdown - bump package revision SVN-Revision: 21638
* base-files, ppp: remove protocol specific cleanup code from /sbin/ifdown and ↵Jo-Philipp Wich2010-05-051-22/+0
| | | | | | move it to protocol stop callbacks SVN-Revision: 21383
* base-files: dispatch ifdown events for proto=none interfaces and fix a race ↵Jo-Philipp Wich2009-09-141-2/+2
| | | | | | condition between revert state and hotplug handlers SVN-Revision: 17582
* remove /tmp/resolv.conf.auto when ifup -a is called so that any old dns ↵Travis Kemen2008-10-291-0/+1
| | | | | | servers no longer in the config get cleared SVN-Revision: 13082
* add basic interface alias support. for now (since we don't use ip in our ↵Felix Fietkau2008-08-071-1/+5
| | | | | | | | | | | network scripts yet), it adds :1, :2, ... alias interfaces this will change when we add support for the ip utility, but the config format will remain the same. example: config alias test option interface lan option ipaddr 192.168.1.1 option netmask 255.255.0.0 SVN-Revision: 12241
* network scripts: revert the network state after running ifdown, not beforeFelix Fietkau2008-08-031-3/+4
| | | | SVN-Revision: 12081
* Here comes the new UCI. Enjoy :)Felix Fietkau2008-02-031-5/+1
| | | | SVN-Revision: 10367
* fix a few issues with dynamically assigned interfacesFelix Fietkau2007-09-121-0/+2
| | | | SVN-Revision: 8765
* keep track of the network interface states (stored in uci format in ↵Felix Fietkau2007-06-161-0/+6
| | | | | | /var/state/network, overlay over /etc/config/network) SVN-Revision: 7643
* more fixesFelix Fietkau2007-06-151-2/+2
| | | | SVN-Revision: 7639
* fix ifdown hotplug event (#1576)Felix Fietkau2007-04-151-1/+1
| | | | SVN-Revision: 6950
* fix bogus "interface not found" errors in ifup -a (#1580)Felix Fietkau2007-04-151-1/+1
| | | | SVN-Revision: 6949
* nuke mdev and replace it with hotplug2 :)Felix Fietkau2007-03-041-1/+1
| | | | SVN-Revision: 6512
* add support for if{down,up} -a and implement proper start/stop/restart for ↵Felix Fietkau2007-03-021-1/+8
| | | | | | /etc/init.d/network SVN-Revision: 6455
* fix typos in ifdown (patch from #1319)Felix Fietkau2007-02-061-2/+2
| | | | SVN-Revision: 6272
* rename default/ to files/Felix Fietkau2006-11-221-0/+55
SVN-Revision: 5622