mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-22 03:52:52 +00:00
36 lines
519 B
Bash
36 lines
519 B
Bash
#!/bin/bash
|
|
|
|
cd /sources
|
|
tar xf kmod-30.tar.xz
|
|
cd kmod-30
|
|
|
|
./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--with-openssl \
|
|
--with-xz \
|
|
--with-zstd \
|
|
--with-zlib
|
|
|
|
|
|
if [ $? -ne 0 ]
|
|
then
|
|
exit 1
|
|
fi
|
|
|
|
make -j5
|
|
|
|
if [ $? -ne 0 ]
|
|
then
|
|
exit 1
|
|
fi
|
|
|
|
make install
|
|
|
|
for target in depmod insmod modinfo modprobe rmmod; do
|
|
ln -sfv ../bin/kmod /usr/sbin/$target
|
|
done
|
|
|
|
ln -sfv kmod /usr/bin/lsmod
|
|
|
|
cd /sources
|
|
rm -rf kmod-30
|