mirror of
https://github.com/krislamo/kernmod.git
synced 2024-09-19 21:30:35 +00:00
14 lines
281 B
Bash
14 lines
281 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
export DEBIAN_FRONTEND=noninteractive
|
||
|
apt-get update
|
||
|
apt-get install build-essential linux-headers-$(uname -r) -y
|
||
|
|
||
|
cd /vagrant
|
||
|
make
|
||
|
modinfo helloworld.ko
|
||
|
insmod helloworld.ko
|
||
|
cat /proc/modules | grep helloworld
|
||
|
rmmod helloworld
|
||
|
cat /var/log/messages | grep helloworld
|