litex/misoclib/com/litepcie/software/linux/kernel/init.sh
2015-04-17 13:48:34 +02:00

7 lines
147 B
Bash

#!/bin/sh
# TODO: use udev instead
insmod litepcie.ko
major=$(awk '/ litepcie$/{print $1}' /proc/devices)
mknod -m 666 /dev/litepcie0 c $major 0