[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ndiswrapper ifup wlan problem



Thierry Chatelet wrote:
Now on the command "ifup wlan0" I get the following error:

/bin/sh: -c: line 1: syntax error: unexpected end of file
Failed to bring up wlan0.


And this is what I have in my interfaces:

auto wlan0
iface wlan0 inet dhcp
pre-up if grep -q ndiswrapper /proc/modules then : else modprobe
> ndiswrapper fi

This looks wrong. Try:

pre-up if grep -q ndiswrapper /proc/modules; then : else modprobe ndiswrapper; fi

But that's not as clean as:

pre-up grep -q ndiswrapper /proc/modules || modprobe ndiswrapper

Of course, you could modprobe ndiswrapper unconditionally, since modprobe won't take action if the module is already loaded.

Can someone help me?
Thank you
Thierry

--
Sam Morris
http://robots.org.uk/

PGP key id 5EA01078
3412 EA18 1277 354B 991B  C869 B219 7FDB 5EA0 1078



Reply to: