ko/mknod.sh

7 lines
99 B
Bash
Executable File

#!/bin/sh
major=$(cat /proc/devices | grep demo | awk '{print $1}')
mknod /dev/demo c $major 0