mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
9 lines
217 B
Bash
Executable File
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
|