Package: hostapd
Version: 1:0.5.3-1
Severity: wishlist
Tags: patch

The attached patch would allow the use of a hostapd.conf file !=
/etc/hostapd/hostapd.conf

It is configurable via the /etc/default/hostapd file.

The patch applies on top of the one attached to #376327.

Thanks, Kel.

-- System Information:
Debian Release: testing/unstable
  APT prefers experimental
  APT policy: (500, 'experimental'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-kel-3
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)

Versions of packages hostapd depends on:
ii  libc6                         2.3.6-15   GNU C Library: Shared libraries
ii  libssl0.9.8                   0.9.8b-2   SSL shared libraries

hostapd recommends no packages.

-- no debconf information
diff -Nrup hostapd-0.5.3/debian/default hostapd-0.5.3.daemonconf/debian/default
--- hostapd-0.5.3/debian/default        2006-07-06 21:52:21.000000000 +1000
+++ hostapd-0.5.3.daemonconf/debian/default     2006-07-06 21:26:07.000000000 
+1000
@@ -8,3 +8,8 @@
 #          you may lose access via your wireless interface.
 #
 #RUN_DAEMON=yes
+
+# Uncomment the follwing line and change the pathname to that of the
+# hostapd configuration file you would like to use. If left unchanged,
+# the hostapd init script will use /etc/hostapd/hostapd.conf
+#DAEMON_CONF=/etc/hostapd/hostapd.conf
diff -Nrup hostapd-0.5.3/debian/init.d hostapd-0.5.3.daemonconf/debian/init.d
--- hostapd-0.5.3/debian/init.d 2006-07-06 21:52:49.000000000 +1000
+++ hostapd-0.5.3.daemonconf/debian/init.d      2006-07-06 21:29:24.000000000 
+1000
@@ -17,9 +17,13 @@ if [ -f /etc/default/hostapd ] ; then
        . /etc/default/hostapd
 fi
 
+if [ ! -s "$DAEMON_CONF" ]; then
+       DAEMON_CONF=/etc/hostapd/hostapd.conf
+fi
+
 PATH=/sbin:/bin:/usr/sbin:/usr/bin
 DAEMON=/usr/sbin/hostapd
-DAEMON_OPTS="$DAEMON_OPTS -B /etc/hostapd/hostapd.conf"
+DAEMON_OPTS="$DAEMON_OPTS -B $DAEMON_CONF"
 NAME=hostapd
 DESC="advanced IEEE 802.11 management"
 

Reply via email to