Files
linux-kernel-module-cheat/rootfs_overlay/lkmc/netlink.sh
2019-07-07 00:00:01 +00:00

9 lines
217 B
Bash
Executable File

#!/bin/sh
# https://cirosantilli.com/linux-kernel-module-cheat#netlink-sockets
set -e
insmod netlink.ko
[ "$(./linux/netlink.out)" = 0 ]
[ "$(./linux/netlink.out)" = 1 ]
[ "$(./linux/netlink.out)" = 2 ]
rmmod netlink