Jo-Philipp Wich
2642c86fb3
[package] netifd: call "wifi down" before "wifi up"
...
When the underlying /etc/config/wireless got changed since the last "wifi up"
has been performed, the uci vap ifname state vars become inconsistent on a
subsequent "wifi up" and multiple vaps get mapped to the same ifnames which
confuses the gui and other processes relying on them.
For now call an explicit "wifi down" prior to each "wifi up" which will clear
up the state accordingly.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33076 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-08-09 22:44:52 +00:00
Jo-Philipp Wich
ee808f12b2
[package] netifd: repair dhcp client id option
...
Busybox udhcpc dropped support for the -c option, instead it can be emulated by using -x 0x3d:id,
change the dhcp protocol script accordingly and filter all colons from the id while we're at it.
This change supersedes http://patchwork.openwrt.org/patch/1810/
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32573 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-01 12:43:14 +00:00
Jo-Philipp Wich
af7771210e
[package] netifd: localize internally used shell variables ( #11567 )
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32192 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-11 13:25:58 +00:00
Jo-Philipp Wich
68235416db
[package] netifd: fix typo in dhcp protocol handler, fixes reqopt handling ( #11609 )
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32098 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-07 10:54:03 +00:00
Jo-Philipp Wich
75a299db50
[package] /etc/functions.sh => /lib/functions.sh
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32062 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-05 16:04:23 +00:00
Felix Fietkau
47566a2eb3
netifd: call /sbin/wifi up on /etc/init.d/network reload
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31941 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-05-28 14:22:42 +00:00
Felix Fietkau
1c0a92e465
netifd: fix "Command failed: Not found" error with dhcp
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31863 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-05-26 20:36:49 +00:00
Felix Fietkau
4bf5594f9b
netifd: bring up wifi at boot
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31855 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-05-24 16:24:55 +00:00
Felix Fietkau
836884a70b
netifd: improve /sbin/ifup wifi hack, make it work properly with -a. fold /etc/init.d/netifd into /etc/init.d/network
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31850 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-05-23 21:49:28 +00:00
Jo-Philipp Wich
75b8054bbb
[package] netifd: port r27720 ( #9763 ) to the netifd ifup variant
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31849 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-05-23 21:26:20 +00:00
Felix Fietkau
c3312ba02d
netifd: bring up all interfaces on /etc/init.d/network restart
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31732 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-05-14 23:50:59 +00:00
Felix Fietkau
4c693d4929
netifd: use the new json_get_vars function in the dhcp helper script
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31727 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-05-14 20:58:27 +00:00
Felix Fietkau
f387b5deb8
netifd: improve error handling in legacy script compatibility library, do not fill the log with error messages for interfaces that could not be found
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31432 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-04-21 20:34:48 +00:00
Felix Fietkau
fe7e861b06
netifd: make type a local variable in /lib/network/config.sh to avoid clashes with an internal config_foreach variable
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31430 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-04-21 20:34:41 +00:00
Felix Fietkau
6959928314
ppp: move ppp-{up,down} from the netifd package to pppd
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31340 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-04-17 21:35:13 +00:00
Felix Fietkau
f33b5960c7
pppd: split files into netifd and non-netifd files, move the netifd ppp.sh file to the pppd package
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31041 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-03-20 13:09:27 +00:00
Felix Fietkau
9b7e775c56
netifd: scan l3 devices on find_config()
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31033 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-03-19 21:09:54 +00:00
Felix Fietkau
c133369698
netifd: shut down all interfaces before restarting netifd
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31032 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-03-19 21:09:51 +00:00
Felix Fietkau
e6721f01b5
netifd: implement find_config()
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30947 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-03-15 09:49:26 +00:00
Felix Fietkau
9c7f658df3
netifd: add missing do_sysctl function
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30749 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-02-27 23:37:46 +00:00
Felix Fietkau
2407096bfc
netifd: add a hotplug handler for setting sysctls (based on the old 10-routes file)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30743 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-02-27 16:23:47 +00:00
Felix Fietkau
639660f57c
netifd: add a new udhcpc default script for command line use (no uci support)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30741 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-02-27 16:23:39 +00:00
Felix Fietkau
de8a98e59d
netifd: set the network device in uci state as well to avoid further remapping issues
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30008 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-02-03 10:17:30 +00:00
Felix Fietkau
6947242c04
netifd: fix legacy scripts that expect the ifname option to be mapped to the device option after fixup
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30003 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-02-02 23:01:02 +00:00
Felix Fietkau
59e41117c6
netifd: always issue a reload on ifup, not just for -a
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29863 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-01-22 21:14:26 +00:00
Nicolas Thill
eac6909465
package/netifd: use new service wrapper
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28839 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-07 22:58:56 +00:00
Felix Fietkau
1e20e3114a
netifd: ensure that a bridge gets created before hostapd needs it, hostapd must not attempt to create the bridge by itself
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28745 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-04 01:05:12 +00:00
Felix Fietkau
5f8e0eff4b
netifd: start wifi at boot
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28738 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-03 20:02:52 +00:00
Felix Fietkau
7e7a63e779
netifd: add missing proto handler conversion after r28632 (thx, Jonathan Bennet)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28713 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-01 22:02:40 +00:00
Felix Fietkau
774a74722d
netifd: update, prefix proto handler callbacks with 'proto_'
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28632 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-10-27 20:28:42 +00:00
Felix Fietkau
0095a6a47c
netifd: remove obsolete _init callbacks, set available=1 for ppp
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28631 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-10-27 20:28:37 +00:00
Felix Fietkau
52cd85e16f
netifd: allow ppp based proto handlers to override the connect/disconnect script
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28630 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-10-27 20:28:33 +00:00
Felix Fietkau
794228a96c
netifd: if core dump support is enabled, use it. also add some delay after start to avoid race conditions with other init scripts
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28611 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-10-26 18:30:55 +00:00
Felix Fietkau
7b7b3c5a18
netifd: add two simple scripts for querying interface/device status
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28545 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-10-23 17:22:14 +00:00
Felix Fietkau
952c79097e
netifd: reload the network config on ifup -a
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28544 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-10-23 17:22:01 +00:00
Felix Fietkau
9117bb10f7
add an initial (experimental) version of netifd, disabled by default
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28499 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-10-21 01:47:49 +00:00