25 lines
383 B
Bash
Executable File
25 lines
383 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
case $1 in
|
|
preinst)
|
|
exit 0
|
|
;;
|
|
postinst)
|
|
if [ ! -f /etc/modprobe.d/blacklist.conf ]; then
|
|
cp /usr/share/kmod/blacklist.conf /etc/modprobe.d/blacklist.conf
|
|
fi
|
|
|
|
if [ ! -f /etc/modprobe.d/usb.conf ]; then
|
|
cp /usr/share/kmod/usb.conf /etc/modprobe.d/usb.conf
|
|
fi
|
|
;;
|
|
prerm)
|
|
exit 0
|
|
;;
|
|
postrm)
|
|
exit 0
|
|
;;
|
|
esac
|