summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index c4bb101..5ceabca 100755
--- a/Makefile
+++ b/Makefile
@@ -58,10 +58,14 @@ endif
ifeq ($(BUILDVER),linux26)
ifneq (,$(wildcard $(ROOT_PREFIX)/etc/modprobe.d))
MODCONF:=$(ROOT_PREFIX)/etc/modprobe.d/zaptel
- else
+ else
ifneq (,$(wildcard $(ROOT_PREFIX)/etc/modprobe.conf))
MODCONF:=$(ROOT_PREFIX)/etc/modprobe.conf
- endif
+ else
+ ifneq (,$(wildcard $(ROOT_PREFIX)/etc/conf.modules))
+ MODCONF:=$(ROOT_PREFIX)/etc/conf.modules
+ endif
+ endif
endif
else # BUILDVER == linux24
ifneq (,$(wildcard $(ROOT_PREFIX)/etc/modutils))
@@ -319,7 +323,6 @@ install: all devices
install -D -m 644 tonezone.h $(INSTALL_PREFIX)/usr/include/tonezone.h
rm -f $(INSTALL_PREFIX)/usr/lib/libtonezone.so
rm -f $(INSTALL_PREFIX)/usr/lib/libtonezone.so.1
- [ `id -u` = 0 ] && /sbin/ldconfig || :
if [ -f $(MODCONF) ]; then mv -f $(MODCONF) $(MODCONF).bak ; fi
cat $(MODCONF).bak | grep -v "alias char-major-250" | \
grep -v "post-install torisa /sbin/ztcfg" | \