zaptel-1.4.x: Added hotplug script to create correct Zaptel device nodes (hotplug's autocreate does the wrong thing).

This commit is contained in:
cshore 2011-03-22 00:35:30 +00:00 committed by Jiri Slachta
parent 9f47fa532a
commit cb26327439
2 changed files with 11 additions and 0 deletions

View file

@ -155,6 +155,8 @@ define Package/zaptel14-util/install
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ztmonitor $(1)/usr/bin/ $(INSTALL_BIN) $(PKG_BUILD_DIR)/ztmonitor $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ztscan $(1)/usr/bin/ $(INSTALL_BIN) $(PKG_BUILD_DIR)/ztscan $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ztspeed $(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 endef
define Package/zaptel14-libtonezone/install define Package/zaptel14-libtonezone/install

View file

@ -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