diff -Nru hostapd-0.7.3/debian/changelog hostapd-0.7.3/debian/changelog --- hostapd-0.7.3/debian/changelog 2011-12-20 01:53:11.000000000 +0000 +++ hostapd-0.7.3/debian/changelog 2012-02-04 23:59:22.000000000 +0000 @@ -1,3 +1,10 @@ +hostapd (1:0.7.3-4ubuntu1) precise; urgency=low + + * Only move sendsigs.omit.d/hostapd.*.pid if the target isn't the same + as the source (as is the case when /lib/init/rw is a symlink to /run) + + -- Adam Conrad Sat, 04 Feb 2012 16:58:20 -0700 + hostapd (1:0.7.3-4) unstable; urgency=low * add myself to uploaders. diff -Nru hostapd-0.7.3/debian/control hostapd-0.7.3/debian/control --- hostapd-0.7.3/debian/control 2011-12-20 01:53:11.000000000 +0000 +++ hostapd-0.7.3/debian/control 2012-02-04 23:59:45.000000000 +0000 @@ -1,7 +1,8 @@ Source: hostapd Section: net Priority: optional -Maintainer: Debian/Ubuntu wpasupplicant Maintainers +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Debian/Ubuntu wpasupplicant Maintainers Uploaders: Faidon Liambotis , Kel Modderman , Jan Dittberner , diff -Nru hostapd-0.7.3/debian/postinst hostapd-0.7.3/debian/postinst --- hostapd-0.7.3/debian/postinst 2011-09-11 21:19:06.000000000 +0000 +++ hostapd-0.7.3/debian/postinst 2012-02-04 23:58:17.000000000 +0000 @@ -20,12 +20,15 @@ case "$1" in configure) # Migrate existing sendsigs omission pid files to /run - if [ -d /run/sendsigs.omit.d/ ] && \ + target="/run/sendsigs.omit.d/" + if [ -d $target ] && \ [ -d /lib/init/rw/sendsigs.omit.d/ ]; then for f in /lib/init/rw/sendsigs.omit.d/hostapd.*.pid do - if [ -f "$f" ]; then - mv "$f" /run/sendsigs.omit.d/ + if [ "$(readlink -f $f)" != "$target$(basename $f)" ]; then + if [ -f "$f" ]; then + mv "$f" "$target" + fi fi done fi