* /etc/modprobe.d added * blacklist.conf and usb.conf added * usher added to manage blacklist.conf and usb.conf
27 lines
459 B
Bash
Executable File
27 lines
459 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
case $1 in
|
|
preinst)
|
|
exit 0
|
|
;;
|
|
postinst)
|
|
if [ ! -f ${TARGET}/etc/modprobe.d/blacklist.conf ]; then
|
|
cp ${TARGET}/usr/share/kmod/blacklist.conf \
|
|
${TARGET}/etc/modprobe.d/blacklist.conf
|
|
fi
|
|
|
|
if [ ! -f ${TARGET}/etc/modprobe.d/usb.conf ]; then
|
|
cp ${TARGET}/usr/share/kmod/usb.conf \
|
|
${TARGET}/etc/modprobe.d/usb.conf
|
|
fi
|
|
;;
|
|
prerm)
|
|
exit 0
|
|
;;
|
|
postrm)
|
|
exit 0
|
|
;;
|
|
esac
|