dvbdev (396B)
1 #!/bin/busybox ash 2 3 [ -n "$MDEV" ] || exit 0 4 [ -n "$DEVNAME" ] || exit 0 5 [ "$SUBSYSTEM" = "dvb" ] || exit 0 6 7 MDEV=$(basename ${MDEV}) 8 DVBDEVPATH=$(dirname "${DEVNAME}") 9 DVBPATH=$(dirname "${DVBDEVPATH}") 10 11 case "$ACTION" in 12 add|"") 13 mkdir -p ${DVBDEVPATH} 14 mv ${MDEV} ${DVBDEVPATH} 15 ;; 16 remove) 17 rm -f ${DEVNAME} 18 rmdir ${DVBDEVPATH} 2>/dev/null 19 rmdir ${DVBPATH} 2>/dev/null 20 esac 21 22 exit 0 23