[Pkg-voip-commits] r4949 - in /zaptel/trunk/debian: changelog zaptel.postinst
paravoid at alioth.debian.org
paravoid at alioth.debian.org
Sat Dec 1 09:46:08 UTC 2007
Author: paravoid
Date: Sat Dec 1 09:46:07 2007
New Revision: 4949
URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=4949
Log:
* Correctly detect udev and devfsd at postinst time.
Modified:
zaptel/trunk/debian/changelog
zaptel/trunk/debian/zaptel.postinst
Modified: zaptel/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-voip/zaptel/trunk/debian/changelog?rev=4949&op=diff
==============================================================================
--- zaptel/trunk/debian/changelog (original)
+++ zaptel/trunk/debian/changelog Sat Dec 1 09:46:07 2007
@@ -20,10 +20,11 @@
[ Faidon Liambotis ]
* Don't delete old device nodes on installations since it's needed only for
upgrades from <= sarge which isn't supported. Shuts up lintian error.
+ * Correctly detect udev and devfsd at postinst time.
* Fix debian/watch by using a pkg-voip wrapper to avoid upstream's silly
redirections. (Closes: #449673)
- -- Tzafrir Cohen <tzafrir.cohen at xorcom.com> Fri, 30 Nov 2007 23:53:08 +0200
+ -- Faidon Liambotis <paravoid at debian.org> Sat, 01 Dec 2007 11:45:37 +0200
zaptel (1:1.4.5.1~dfsg-2) unstable; urgency=low
Modified: zaptel/trunk/debian/zaptel.postinst
URL: http://svn.debian.org/wsvn/pkg-voip/zaptel/trunk/debian/zaptel.postinst?rev=4949&op=diff
==============================================================================
--- zaptel/trunk/debian/zaptel.postinst (original)
+++ zaptel/trunk/debian/zaptel.postinst Sat Dec 1 09:46:07 2007
@@ -11,8 +11,6 @@
# <failed-install-package> <version> `removing'
# <conflicting-package> <version>
-DYNFS=`ps ax | grep -v grep`
-
mknod_safe() {
if [ -c $1 ]; then return; fi
mknod "$@" || true
@@ -23,13 +21,14 @@
#MAKEDEV zaptel
- if ! echo $DYNFS | grep -q devfsd || echo $DYNFS | grep -q udevd ; then
+ if [ ! -e /dev/.devfsd -a ! -e /dev/.udevdb -a ! -e /dev/.udev ]; then
mkdir -p /dev/zap
mknod_safe /dev/zap/ctl c 196 0
+ mknod_safe /dev/zap/transcode c 196 250
mknod_safe /dev/zap/timer c 196 253
mknod_safe /dev/zap/channel c 196 254
mknod_safe /dev/zap/pseudo c 196 255
- for N in `seq 250`; do
+ for N in `seq 249`; do
mknod_safe /dev/zap/$N c 196 $N
done
chown 0:dialout /dev/zap/ -R
More information about the Pkg-voip-commits
mailing list