diff options
author | William Harrington <kb0iic@berzerkula.org> | 2021-04-12 12:49:29 -0500 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2021-04-12 12:49:29 -0500 |
commit | 99659c30e5369c3f02e286a4a6ec6fecd77f0416 (patch) | |
tree | 12110b15571365acae602ebd9c1348463a0d4710 /chapter8/kmod.sh | |
parent | 0e5288f8f3bee7276d561cde029ed492e2ea85e6 (diff) | |
parent | 13c6afd35cab1e3f4d96857d549e02cfd1e23acd (diff) |
Merge branch 'chapter8'
Diffstat (limited to 'chapter8/kmod.sh')
-rw-r--r-- | chapter8/kmod.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/chapter8/kmod.sh b/chapter8/kmod.sh new file mode 100644 index 0000000..65e3a5f --- /dev/null +++ b/chapter8/kmod.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +./configure --prefix=/usr \ + --bindir=/bin \ + --sysconfdir=/etc \ + --with-rootlibdir=/lib \ + --with-xz \ + --with-zstd \ + --with-zlib + +make + +make -j1 install + +for target in depmod insmod lsmod modinfo modprobe rmmod; do + ln -sfv ../bin/kmod /sbin/"${target}" +done + +ln -sfv kmod /bin/lsmod |