blob: bea6a80603ba6fbf366d531da981f03bfb7a68ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
EXTRADIR=/usr/lib/modules/$(uname -r)/$(readlink /usr/lib/modules/$(uname -r)/extramodules)
KERNELDIR=/usr/lib/modules/$(uname -r)/kernel
post_install () {
#Disable old cryptoloop module
if [ -f /etc/modules-load.d/util-linux-aes.conf ]
then
rm /etc/modules-load.d/util-linux-aes.conf
fi
echo "Depmod..."
depmod
modprobe -r loop
modprobe loop-aes
echo "->> % Now you can use the loop-aes, rebuild the kernel is not required!"
echo "->> @ I plan to add hooks for initramfs"
echo "->> % Please reinstall this package after kernel update"
}
post_upgrade() {
post_install
}
post_remove() {
echo "Depmod..."
depmod
modprobe -r loop-aes
modprobe loop
}
|