[pkg-wpa-devel] r1591 - in /hostapd/trunk/debian: changelog postinst

kelmo-guest at users.alioth.debian.org kelmo-guest at users.alioth.debian.org
Sun Jul 24 09:21:26 UTC 2011


Author: kelmo-guest
Date: Sun Jul 24 09:21:25 2011
New Revision: 1591

URL: http://svn.debian.org/wsvn/pkg-wpa/?sc=1&rev=1591
Log:
Migrate existing sendsigs omission pid files from /lib/init/rw to /run.

Added:
    hostapd/trunk/debian/postinst
Modified:
    hostapd/trunk/debian/changelog

Modified: hostapd/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-wpa/hostapd/trunk/debian/changelog?rev=1591&op=diff
==============================================================================
--- hostapd/trunk/debian/changelog (original)
+++ hostapd/trunk/debian/changelog Sun Jul 24 09:21:25 2011
@@ -1,12 +1,13 @@
 hostapd (1:0.7.3-3) unstable; urgency=low
 
   * Use /run/sendsigs.omit.d/ for sendsigs omission pid file and depend on
-    initscripts (>= 2.88dsf-13.3).
+    initscripts (>= 2.88dsf-13.3). (Closes: #633026)
+  * Migrate existing sendsigs omission pid files from /lib/init/rw to /run.
   * Add a loop to ifupdown.sh to wait for creation of hostapd pid file before
     attempting creation of sensigs omission pid file, in some cases hostapd
     daemon can return before creation of the pid file has been written to disk.
 
- -- Kel Modderman <kel at otaku42.de>  Sun, 24 Jul 2011 19:02:31 +1000
+ -- Kel Modderman <kel at otaku42.de>  Sun, 24 Jul 2011 19:20:52 +1000
 
 hostapd (1:0.7.3-2) unstable; urgency=low
 

Added: hostapd/trunk/debian/postinst
URL: http://svn.debian.org/wsvn/pkg-wpa/hostapd/trunk/debian/postinst?rev=1591&op=file
==============================================================================
--- hostapd/trunk/debian/postinst (added)
+++ hostapd/trunk/debian/postinst Sun Jul 24 09:21:25 2011
@@ -1,0 +1,39 @@
+#!/bin/sh
+# This script can be called in the following ways:
+#
+# After the package was installed:
+#       <postinst> configure <old-version>
+#
+#
+# If prerm fails during upgrade or fails on failed upgrade:
+#       <old-postinst> abort-upgrade <new-version>
+#
+# If prerm fails during deconfiguration of a package:
+#       <postinst> abort-deconfigure in-favour <new-package> <version>
+#                  removing <old-package> <version>
+#
+# If prerm fails during replacement due to conflict:
+#       <postinst> abort-remove in-favour <new-package> <version>
+
+set -e
+
+case "$1" in
+	configure)
+		# Migrate existing sendsigs omission pid files to /run
+		if [ -d /run/sendsigs.omit.d/ ] && [ -d /lib/init/rw/ ]; then
+			for f in /lib/init/rw/hostapd.*.pid
+			do
+				mv "$f" /run/sendsigs.omit.d/
+			done
+		fi
+		;;
+	abort-upgrade|abort-deconfigure|abort-remove)
+		;;
+	*)
+		echo "$0 called with unknown argument \`$1'" 1>&2
+		exit 1
+		;;
+esac
+
+#DEBHELPER#
+exit 0




More information about the Pkg-wpa-devel mailing list