Jo-Philipp Wich
19bf880b03
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.
SVN-Revision: 33076
2012-08-09 22:44:52 +00:00
Jo-Philipp Wich
bcacf552fd
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/
...
SVN-Revision: 32573
2012-07-01 12:43:14 +00:00
Jo-Philipp Wich
eb9b3bdb4f
netifd: localize internally used shell variables ( #11567 )
...
SVN-Revision: 32192
2012-06-11 13:25:58 +00:00
Jo-Philipp Wich
1760bf569a
netifd: fix typo in dhcp protocol handler, fixes reqopt handling ( #11609 )
...
SVN-Revision: 32098
2012-06-07 10:54:03 +00:00
Jo-Philipp Wich
9ae901445b
/etc/functions.sh => /lib/functions.sh
...
SVN-Revision: 32062
2012-06-05 16:04:23 +00:00
Felix Fietkau
9fba35fe7e
netifd: call /sbin/wifi up on /etc/init.d/network reload
...
SVN-Revision: 31941
2012-05-28 14:22:42 +00:00
Felix Fietkau
d7522444d2
netifd: fix "Command failed: Not found" error with dhcp
...
SVN-Revision: 31863
2012-05-26 20:36:49 +00:00
Felix Fietkau
cc61ab5c6d
netifd: bring up wifi at boot
...
SVN-Revision: 31855
2012-05-24 16:24:55 +00:00
Felix Fietkau
b86652832e
netifd: improve /sbin/ifup wifi hack, make it work properly with -a. fold /etc/init.d/netifd into /etc/init.d/network
...
SVN-Revision: 31850
2012-05-23 21:49:28 +00:00
Jo-Philipp Wich
267b414b4c
netifd: port r27720 ( #9763 ) to the netifd ifup variant
...
SVN-Revision: 31849
2012-05-23 21:26:20 +00:00
Felix Fietkau
768d49a428
netifd: bring up all interfaces on /etc/init.d/network restart
...
SVN-Revision: 31732
2012-05-14 23:50:59 +00:00
Felix Fietkau
a6e7b3cffe
netifd: use the new json_get_vars function in the dhcp helper script
...
SVN-Revision: 31727
2012-05-14 20:58:27 +00:00
Felix Fietkau
f37deb2b1b
netifd: improve error handling in legacy script compatibility library, do not fill the log with error messages for interfaces that could not be found
...
SVN-Revision: 31432
2012-04-21 20:34:48 +00:00
Felix Fietkau
bfa643c7ef
netifd: make type a local variable in /lib/network/config.sh to avoid clashes with an internal config_foreach variable
...
SVN-Revision: 31430
2012-04-21 20:34:41 +00:00
Felix Fietkau
43695701ec
ppp: move ppp-{up,down} from the netifd package to pppd
...
SVN-Revision: 31340
2012-04-17 21:35:13 +00:00
Felix Fietkau
a660a57d71
pppd: split files into netifd and non-netifd files, move the netifd ppp.sh file to the pppd package
...
SVN-Revision: 31041
2012-03-20 13:09:27 +00:00
Felix Fietkau
6df99730c4
netifd: scan l3 devices on find_config()
...
SVN-Revision: 31033
2012-03-19 21:09:54 +00:00
Felix Fietkau
6a30a0d992
netifd: shut down all interfaces before restarting netifd
...
SVN-Revision: 31032
2012-03-19 21:09:51 +00:00
Felix Fietkau
adff0183ca
netifd: implement find_config()
...
SVN-Revision: 30947
2012-03-15 09:49:26 +00:00
Felix Fietkau
4814eb5df9
netifd: add missing do_sysctl function
...
SVN-Revision: 30749
2012-02-27 23:37:46 +00:00
Felix Fietkau
429886fbbb
netifd: add a hotplug handler for setting sysctls (based on the old 10-routes file)
...
SVN-Revision: 30743
2012-02-27 16:23:47 +00:00
Felix Fietkau
8ad6213f59
netifd: add a new udhcpc default script for command line use (no uci support)
...
SVN-Revision: 30741
2012-02-27 16:23:39 +00:00
Felix Fietkau
477c3c4015
netifd: set the network device in uci state as well to avoid further remapping issues
...
SVN-Revision: 30008
2012-02-03 10:17:30 +00:00
Felix Fietkau
bffa830f13
netifd: fix legacy scripts that expect the ifname option to be mapped to the device option after fixup
...
SVN-Revision: 30003
2012-02-02 23:01:02 +00:00
Felix Fietkau
c309ed6210
netifd: always issue a reload on ifup, not just for -a
...
SVN-Revision: 29863
2012-01-22 21:14:26 +00:00
Nicolas Thill
7a176742bb
package/netifd: use new service wrapper
...
SVN-Revision: 28839
2011-11-07 22:58:56 +00:00
Felix Fietkau
dab5ebaa76
netifd: ensure that a bridge gets created before hostapd needs it, hostapd must not attempt to create the bridge by itself
...
SVN-Revision: 28745
2011-11-04 01:05:12 +00:00
Felix Fietkau
d4d91df5fe
netifd: start wifi at boot
...
SVN-Revision: 28738
2011-11-03 20:02:52 +00:00
Felix Fietkau
b8d90aceb2
netifd: add missing proto handler conversion after r28632 (thx, Jonathan Bennet)
...
SVN-Revision: 28713
2011-11-01 22:02:40 +00:00
Felix Fietkau
bebd9aec71
netifd: update, prefix proto handler callbacks with 'proto_'
...
SVN-Revision: 28632
2011-10-27 20:28:42 +00:00
Felix Fietkau
24bf5c41a0
netifd: remove obsolete _init callbacks, set available=1 for ppp
...
SVN-Revision: 28631
2011-10-27 20:28:37 +00:00
Felix Fietkau
b3d7c7b1b5
netifd: allow ppp based proto handlers to override the connect/disconnect script
...
SVN-Revision: 28630
2011-10-27 20:28:33 +00:00
Felix Fietkau
803c7edcb3
netifd: if core dump support is enabled, use it. also add some delay after start to avoid race conditions with other init scripts
...
SVN-Revision: 28611
2011-10-26 18:30:55 +00:00
Felix Fietkau
01f9388cde
netifd: add two simple scripts for querying interface/device status
...
SVN-Revision: 28545
2011-10-23 17:22:14 +00:00
Felix Fietkau
4112fbaafb
netifd: reload the network config on ifup -a
...
SVN-Revision: 28544
2011-10-23 17:22:01 +00:00
Felix Fietkau
55aeabae10
add an initial (experimental) version of netifd, disabled by default
...
SVN-Revision: 28499
2011-10-21 01:47:49 +00:00