The following changes were made:

* /etc/modprobe.d added
  * blacklist.conf and usb.conf added
  * usher added to manage blacklist.conf and usb.conf
This commit is contained in:
2017-05-16 17:06:08 -05:00
parent cb39d79bc4
commit d3b33bbcca
4 changed files with 37 additions and 1 deletions

2
SNAP/blacklist.conf Normal file
View File

@@ -0,0 +1,2 @@
blacklist pcspkr
blacklist cirrusfb

2
SNAP/usb.conf Normal file
View File

@@ -0,0 +1,2 @@
install ohci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe -i ohci_hcd ; true
install uhci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe -i uhci_hcd ; true

26
SNAP/usher Executable file
View File

@@ -0,0 +1,26 @@
#!/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