From 23c533c72f4dfb1f9fd1be3a8afbdb7a7ffc2e20 Mon Sep 17 00:00:00 2001 From: Daniel Dickinson Date: Tue, 22 Mar 2011 00:35:30 +0000 Subject: [PATCH] zaptel-1.4.x: Added hotplug script to create correct Zaptel device nodes (hotplug's autocreate does the wrong thing). SVN-Revision: 26262 --- libs/zaptel-1.4.x/Makefile | 2 ++ libs/zaptel-1.4.x/files/10-create-device-node | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100644 libs/zaptel-1.4.x/files/10-create-device-node diff --git a/libs/zaptel-1.4.x/Makefile b/libs/zaptel-1.4.x/Makefile index 631d4d7c0..91f19583e 100644 --- a/libs/zaptel-1.4.x/Makefile +++ b/libs/zaptel-1.4.x/Makefile @@ -155,6 +155,8 @@ define Package/zaptel14-util/install $(INSTALL_BIN) $(PKG_BUILD_DIR)/ztmonitor $(1)/usr/bin/ $(INSTALL_BIN) $(PKG_BUILD_DIR)/ztscan $(1)/usr/bin/ $(INSTALL_BIN) $(PKG_BUILD_DIR)/ztspeed $(1)/usr/bin/ + $(INSTALL_DIR) $(1)/etc/hotplug.d/zaptel + $(INSTALL_DATA) ./files/10-create-device-node $(1)/etc/hotplug.d/zaptel/ endef define Package/zaptel14-libtonezone/install diff --git a/libs/zaptel-1.4.x/files/10-create-device-node b/libs/zaptel-1.4.x/files/10-create-device-node new file mode 100644 index 000000000..f49c6c1e4 --- /dev/null +++ b/libs/zaptel-1.4.x/files/10-create-device-node @@ -0,0 +1,9 @@ +#!/bin/sh + +case "$ACTION" in + add) + /bin/mkdir -p /dev/zap + /bin/mknod -m 0644 /dev/zap/${DEVICENAME#zap} c $MAJOR $MINOR + ;; +esac + -- 2.30.2