2 Commits

Author SHA1 Message Date
Jay Larson
9163845c19 The following changes were made:
* Added REPO
  * Moved usher from bash to /bin/sh
  * Removed TARGET from usher
2018-03-27 09:24:25 -05:00
Jay Larson
d3b33bbcca The following changes were made:
* /etc/modprobe.d added
  * blacklist.conf and usb.conf added
  * usher added to manage blacklist.conf and usb.conf
2017-05-16 17:06:08 -05:00
4 changed files with 36 additions and 1 deletions

View File

@@ -11,11 +11,12 @@
DEPENDS = glibc DEPENDS = glibc
ARCH = x86_64 ARCH = x86_64
URL = http://git.kernel.org/cgit/utils/kernel/kmod/kmod.git/about/ URL = http://git.kernel.org/cgit/utils/kernel/kmod/kmod.git/about/
REPO = core
BRIEF = Kernel module tools BRIEF = Kernel module tools
DESC = kmod is a set of tools to handle common tasks with Linux kernel \ DESC = kmod is a set of tools to handle common tasks with Linux kernel \
modules like insert, remove, list, check properties, resolve dependencies \ modules like insert, remove, list, check properties, resolve dependencies \
and aliases. and aliases.
SNAPVER = 2 SNAPVER = 4
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1) ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n') TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
@@ -74,6 +75,12 @@ $(ROOT): $(SRCDIR)/tools/kmod
ln -sv ../bin/kmod $(ROOT)/sbin/modprobe && \ ln -sv ../bin/kmod $(ROOT)/sbin/modprobe && \
ln -sv ../bin/kmod $(ROOT)/sbin/rmmod ln -sv ../bin/kmod $(ROOT)/sbin/rmmod
@install -v -d -m 755 $(ROOT)/etc/modprobe.d && \
install -v -d -m 755 $(ROOT)/usr/share/kmod && \
install -v -m 644 $(PWD)/SNAP/blacklist.conf \
$(ROOT)/usr/share/kmod/blacklist.conf && \
install -v -m 644 $(PWD)/SNAP/usb.conf $(ROOT)/usr/share/kmod/usb.conf
clean: clean:
@rm -rvf $(ROOT) \ @rm -rvf $(ROOT) \
$(SNAPINFO) \ $(SNAPINFO) \

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

24
SNAP/usher Executable file
View File

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