litex/misoclib/com/litepcie/software/linux/kernel/init.sh

8 lines
147 B
Bash
Raw Normal View History

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