blob: e2dea9f26bb2f2cbb9682a3aaea21857773856ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
_depmod() {
for kernel in $(ls -d /lib/modules/*); do
if [[ -n $(pacman -Qo $kernel | awk '/linux/ && /headers/') ]]; then
echo -n "Running depmod for Linux $(basename $kernel)... "
depmod $(basename $kernel) && echo "Done."
fi
done
}
post_install() {
_depmod
echo -e "Before using darling, you must to load \033[1mdarling-mach\033[0m kernel module."
}
post_upgrade() {
_depmod
echo -e "You must to reload \033[1mdarling-mach\033[0m kernel module to use new version."
}
post_remove() {
_depmod
}
|