[pkg-wpa-devel] Bug#571029: hostapd: if-pre-up script error

green greenfreedom10 at gmail.com
Mon Feb 22 22:05:28 UTC 2010


Package: hostapd
Version: 1:0.6.10-1
Severity: normal

I have /etc/network/interfaces set up to run hostapd like this:

auto br0
iface br0 inet static
  hostapd /etc/hostapd/hostapd.conf
  address 192.168.68.1
  netmask 255.255.255.0
  network 192.168.68.0
  broadcast 192.168.68.255
  bridge_ports eth1 eth2 eth3 wlan0


When running ifup br0, I get:

/etc/network/if-pre-up.d/hostapd: line 91: [: missing `]'
run-parts: /etc/network/if-pre-up.d/hostapd exited with return code 1


This is easily fixed by adding a space after the '0' (zero) on line 91; from:
 if [ "$?" -eq 0]; then

to:
 if [ "$?" -eq 0 ]; then



Thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-wpa-devel/attachments/20100222/9489d711/attachment.pgp>


More information about the Pkg-wpa-devel mailing list