Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9163845c19 | ||
|
|
d3b33bbcca |
9
Makefile
9
Makefile
@@ -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
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
|
||||||
24
SNAP/usher
Executable file
24
SNAP/usher
Executable 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
|
||||||
Reference in New Issue
Block a user