aboutsummaryrefslogtreecommitdiffstats
path: root/chapter8/kmod.sh
blob: 3435179a7126de97363ca19935b10f80741c926d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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