packages/libs/zaptel-1.4.x/files/10-create-device-node
cshore 57ddea3d46 [libs] zaptel-1.4.x: Added hotplug script to create correct Zaptel device nodes (hotplug's autocreate does the wrong thing).
git-svn-id: svn://svn.openwrt.org/openwrt/packages@26262 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-22 00:35:30 +00:00

10 lines
185 B
Bash

#!/bin/sh
case "$ACTION" in
add)
/bin/mkdir -p /dev/zap
/bin/mknod -m 0644 /dev/zap/${DEVICENAME#zap} c $MAJOR $MINOR
;;
esac