From 2d072c599779ce1b76df480b9da7cd3c3e65425c Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 15 Oct 2006 15:27:34 +0000 Subject: implement simple device autodetection for wifi drivers SVN-Revision: 5113 --- package/base-files/default/etc/init.d/S40network | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'package/base-files/default/etc') diff --git a/package/base-files/default/etc/init.d/S40network b/package/base-files/default/etc/init.d/S40network index be045045e7..c7720369fd 100755 --- a/package/base-files/default/etc/init.d/S40network +++ b/package/base-files/default/etc/init.d/S40network @@ -6,6 +6,8 @@ start() { include /lib/network setup_switch - /sbin/wifi + [ -e /etc/config/wireless ] || \ + /sbin/wifi detect > /etc/config/wireless + /sbin/wifi up } -- cgit v1.2.3