mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 00:40:13 +00:00
25 lines
342 B
Bash
Executable File
25 lines
342 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Script to create DVB ASI device files.
|
|
|
|
major=61
|
|
|
|
# Transmit interfaces
|
|
i=0
|
|
while [ $i -lt 16 ]
|
|
do
|
|
mknod /dev/asitx${i} c ${major} $(($i))
|
|
chmod 600 /dev/asitx${i}
|
|
i=$(($i+1))
|
|
done
|
|
|
|
# Receive interfaces
|
|
i=0
|
|
while [ $i -lt 16 ]
|
|
do
|
|
mknod /dev/asirx${i} c ${major} $(($i+128))
|
|
chmod 600 /dev/asirx${i}
|
|
i=$(($i+1))
|
|
done
|
|
|