LFS buld scripts.
http://linuxfromscratch.org/lfs/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
460 B
30 lines
460 B
#!/bin/bash |
|
|
|
#### kmod |
|
|
|
cd /sources |
|
|
|
tar -xf kmod-26.tar.xz |
|
|
|
cd kmod-26 |
|
|
|
./configure --prefix=/usr \ |
|
--bindir=/bin \ |
|
--sysconfdir=/etc \ |
|
--with-rootlibdir=/lib \ |
|
--with-xz \ |
|
--with-zlib |
|
|
|
make |
|
make install |
|
|
|
for target in depmod insmod lsmod modinfo modprobe rmmod; do |
|
ln -sfv ../bin/kmod "/sbin/$target" |
|
done |
|
|
|
ln -sfv kmod /bin/lsmod |
|
|
|
cd /sources |
|
|
|
rm -rf kmod-26 |
|
|
|
|