aboutsummaryrefslogtreecommitdiffstats
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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28495 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: attempt bring up related wifi devices when calling ifupJo-Philipp Wich2011-07-221-9/+13
| | | | | | | | | | | | | | | | | | | | | If a 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. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27720 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files:Jo-Philipp Wich2010-05-301-0/+3
| | | | | | | | | | - use add_dns() and remove_dns() for when changing 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21638 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files, ppp: remove protocol specific cleanup code from ↵Jo-Philipp Wich2010-05-051-22/+0
| | | | | | /sbin/ifdown and move it to protocol stop callbacks git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21383 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: dispatch ifdown events for proto=none interfaces and ↵Jo-Philipp Wich2009-09-141-2/+2
| | | | | | fix a race condition between revert state and hotplug handlers git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17582 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13082 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add basic interface alias support.Felix Fietkau2008-08-071-1/+5
| | | | | | | | | | | | | | for now (since we don't use ip in our 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12241 3c298f89-4303-0410-b956-a3cf2f4a3e73
* network scripts: revert the network state after running ifdown, not beforeFelix Fietkau2008-08-031-3/+4
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12081 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Here comes the new UCI. Enjoy :)Felix Fietkau2008-02-031-5/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10367 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix a few issues with dynamically assigned interfacesFelix Fietkau2007-09-121-0/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8765 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7643 3c298f89-4303-0410-b956-a3cf2f4a3e73
* more fixesFelix Fietkau2007-06-151-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7639 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix ifdown hotplug event (#1576)Felix Fietkau2007-04-151-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6950 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix bogus "interface not found" errors in ifup -a (#1580)Felix Fietkau2007-04-151-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6949 3c298f89-4303-0410-b956-a3cf2f4a3e73
* nuke mdev and replace it with hotplug2 :)Felix Fietkau2007-03-041-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6512 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add support for if{down,up} -a and implement proper start/stop/restart for ↵Felix Fietkau2007-03-021-1/+8
| | | | | | /etc/init.d/network git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6455 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix typos in ifdown (patch from #1319)Felix Fietkau2007-02-061-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6272 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rename default/ to files/Felix Fietkau2006-11-221-0/+55
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5622 3c298f89-4303-0410-b956-a3cf2f4a3e73