From 1818360e59b558561a6b0b530d2c9ef7f2407da5 Mon Sep 17 00:00:00 2001 From: markster Date: Fri, 16 Jul 2004 22:09:07 +0000 Subject: Add udev support (courtesy matt / creslin) git-svn-id: http://svn.digium.com/svn/zaptel/trunk@433 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 5378596..c748e70 100755 --- a/Makefile +++ b/Makefile @@ -38,8 +38,13 @@ MODCONF=$(shell if [ -d $(INSTALL_PREFIX)/etc/modprobe.d ]; then echo "$(INSTALL ifeq (${BUILDVER},linux24) #We only support DEVFS in linux 2.4 kernels, since its considered obsolete post 2.4 -DEVFS=$(shell ps ax | grep -v grep | grep devfsd) +DYNFS=$(shell ps ax | grep -v grep | grep devfsd) endif +ifeq (${BUILDVER},linux26) +#Tests for newer linux-2.6 udev support +DYNFS=$(shell ps ax | grep -v grep | grep udevd) +endif + TZOBJS=zonedata.lo tonezone.lo LIBTONEZONE=libtonezone.so.1.0 @@ -213,7 +218,7 @@ fxsdump: fxsdump.o $(CC) -o fxsdump fxsdump.o -lm devices: -ifeq ($(DEVFS),) +ifeq ($(DYNFS),) mkdir -p $(INSTALL_PREFIX)/dev/zap rm -f $(INSTALL_PREFIX)/dev/zap/ctl rm -f $(INSTALL_PREFIX)/dev/zap/channel @@ -234,7 +239,8 @@ ifeq ($(DEVFS),) N=$$[$$N+1]; \ done else - @echo "**** devfs detected -- not making device nodes" + @echo "**** Dynamic filesystem detected -- not creating device nodes" + @echo "**** If you are running udev, read README.udev" endif install: all devices $(LIBTONEZONE) -- cgit v1.2.3