linux_module_learn/examples/snull/snull_load

9 lines
171 B
Plaintext
Raw Normal View History

2023-07-22 13:42:32 +08:00
#!/bin/sh
export PATH=/sbin:/bin
# Use a pathname, as new modutils don't look in the current dir by default
insmod ./snull.ko $*
ifconfig sn0 local0
ifconfig sn1 local1