diff options
author | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-07-16 22:09:07 +0000 |
---|---|---|
committer | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-07-16 22:09:07 +0000 |
commit | 1818360e59b558561a6b0b530d2c9ef7f2407da5 (patch) | |
tree | 0dfea157fa66dc329a1107e891a8af37aa0facba /Makefile | |
parent | b6f5d94bb37d52f93b2b869c1105ded1fe520fe8 (diff) |
Add udev support (courtesy matt / creslin)
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@433 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'Makefile')
-rwxr-xr-x | Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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) |