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

ifupdown 0.6.4-4.11 needed for sarge



I see that ifupdown 0.6.4-4.10 has made it into sarge.  That makes it
much more important that we get bug #266479 fixed in the sarge/sid
version as well as in the experimental version.  (ifupdown 0.6.4-4.8 did
not have this bug; it was introduced in 0.6.4-4.9 and not fixed in
0.6.4-4.10.)

Quite some time ago I prepared 0.6.4-4.11 which has the necessary
changes ported over from the exp version of the package.  I have sent a
number of requests out that this package be uploaded to unstable but no
one has done it; therefore I am writing debian-release.

The fixed package is available at:

    http://www.aglu.demon.nl/ifupdown

I attach the diff between -4.10 and -4.11 so that you can see that the
changes are limited to those required to fix #266479.
-- 
Thomas Hood <jdthood@aglu.demon.nl>
diff -Naur ifupdown-0.6.4-4.10/debian/changelog ifupdown-0.6.4-4.11/debian/changelog
--- ifupdown-0.6.4-4.10/debian/changelog	2005-01-27 20:03:50.000000000 +0100
+++ ifupdown-0.6.4-4.11/debian/changelog	2005-01-27 20:04:06.000000000 +0100
@@ -1,3 +1,11 @@
+ifupdown (0.6.4-4.11) unstable; urgency=low
+
+  * Non-maintainer upload
+  * Do not make /etc/network/run a symlink to /dev/shm/network/
+    if devfs is in use.  (Closes: #266479)
+
+ -- Thomas Hood <jdthood@yahoo.co.uk>  Sun, 12 Sep 2004 14:46:29 +0200
+
 ifupdown (0.6.4-4.10) unstable; urgency=low
 
   * Non-maintainer upload. Fix critical bugs.
diff -Naur ifupdown-0.6.4-4.10/debian/postinst ifupdown-0.6.4-4.11/debian/postinst
--- ifupdown-0.6.4-4.10/debian/postinst	2005-01-27 20:03:50.000000000 +0100
+++ ifupdown-0.6.4-4.11/debian/postinst	2005-01-27 20:04:06.000000000 +0100
@@ -67,14 +67,18 @@
 
 # Set up run dir if it does not exist
   if [ ! -e /etc/network/run ] && [ ! -L /etc/network/run ]; then
-      if [ -d /dev/shm ] && [ -r /proc/mounts ] && grep -q "^tmpfs[[:space:]]\+/dev/shm[[:space:]]\+tmpfs[[:space:]]\+\([^[:space:]]\+,\)\?rw" /proc/mounts ; then
-           if [ -d /dev/shm/network ] || mkdir /dev/shm/network ; then
-               ln -s /dev/shm/network /etc/network/run
-           else
-               mkdir /etc/network/run
-           fi
+      # Use /dev/shm if possible
+      if \
+        [ -d /dev/shm ] \
+        && [ -w /dev/shm ] \
+        && [ -r /proc/mounts ] \
+        && grep -qs "^tmpfs[[:space:]]\+/dev/shm[[:space:]]\+tmpfs[[:space:]]\+\([^[:space:]]\+,\)\?rw" /proc/mounts \
+        && ! grep -qs '[[:space:]]/dev[[:space:]]devfs[[:space:]]' /proc/mounts \
+        && { [ -d /dev/shm/network ] || mkdir -v /dev/shm/network ; }
+      then
+        ln -s /dev/shm/network /etc/network/run
       else
-           mkdir /etc/network/run
+        mkdir -v /etc/network/run
       fi
   fi
 

Reply to: