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:
2
SNAP/blacklist.conf
Normal file
2
SNAP/blacklist.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
blacklist pcspkr
|
||||
blacklist cirrusfb
|
||||
2
SNAP/usb.conf
Normal file
2
SNAP/usb.conf
Normal 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
26
SNAP/usher
Executable 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
|
||||
Reference in New Issue
Block a user