Bug#408928: ipw3945d: please allow /var/run as tmpfs

2007-02-05 Thread Jurij Smakov
Hi Luca,

Thanks for the report. I've prepared a new version of ipw3945d which 
should handle the /var/run on tmpfs properly. I would appreciate if 
you could test it and confirm that it works ok in your setup. You
can download the source package and the deb from

http://www.wooyd.org/debian/ipw3945d/

Thanks,
-- 
Jurij Smakov   [EMAIL PROTECTED]
Key: http://www.wooyd.org/pgpkey/  KeyID: C99E03CC


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#408928: ipw3945d: please allow /var/run as tmpfs

2007-01-29 Thread Luca Capello
Package: ipw3945d
Version: 1.7.22-3
Severity: normal
Tags: patch

Hello,

since I use a tmpfs for my /var/run [1], ipw3945d cannot start
anymore, because /var/run/ipw3945d doesn't exist.  The following patch
solves the problem (similar to bugs #390506 [2] and # [3]):

--8---cut here---start-8---
--- ipw3945d.ORG2007-01-28 23:47:23.0 +0100
+++ ipw3945d2007-01-29 10:49:32.0 +0100
@@ -19,6 +19,7 @@
 DAEMON_PID_DIR=/var/run/ipw3945d
 DAEMON_PID_FILE=${DAEMON_PID_DIR}/ipw3945d.pid
 DAEMON_LOG_FILE=/var/log/ipw3945d/ipw3945d.log
+VARRUNDIR=/var/run/ipw3945d
 
 # Occasionally we will be started by a modprobe hook very early,
 # when the filesystem might not be mounted rw yet. In this case
@@ -75,8 +76,20 @@
   fi
 }
 
+# Check if /var/run/ipw3945d exists, create it if it doesn't.  This
+# is to let users have /var/run as tmpfs (see /etc/default/rcS).
+check_varrundir () {
+  if [ ! -d $VARRUNDIR ]; then
+echo -n Creating $VARRUNDIR...
+mkdir -m 0755 $VARRUNDIR
+chown $DAEMON_OWNER $VARRUNDIR
+echo done.
+  fi
+}
+
 start_daemon() {
   if have_sys_entries; then
+check_varrundir
 remove_stale_pid
 log_daemon_msg Starting ipw3945 regulatory daemon ipw3945d
 start-stop-daemon --start --quiet --chuid ${DAEMON_OWNER}
\
--8---cut here---end---8---

Please consider for inclusion, TIA.

Thx, bye,
Gismo / Luca

Footnotes: 
[1] http://lists.debian.org/debian-devel/2006/10/msg01277.html
[2] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=390506
[3] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=408848

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages ipw3945d depends on:
ii  adduser 3.102Add and remove users and groups
ii  libc6   2.3.6.ds1-10 GNU C Library: Shared libraries
ii  lsb-base3.1-23   Linux Standard Base 3.1 init scrip

Versions of packages ipw3945d recommends:
ii  firmware-ipw3945  0.3Binary firmware for IPW3945

-- no debconf information


pgpQKzftBhB88.pgp
Description: PGP signature