Files
linux-kernel-module-cheat/rootfs_overlay/mknoddev.sh
2017-06-17 13:15:49 +01:00

5 lines
110 B
Bash
Executable File

#!/bin/sh
dev="lkmc_$1"
major="$(grep "$dev" /proc/devices | cut -d ' ' -f 1)"
mknod "/dev/$dev" c "$major" 0