diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-01-06 23:17:21 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-01-06 23:17:21 +0000 |
commit | d293ca6678d6b962dac574dc708e923789cc155f (patch) | |
tree | 95577af3051f61faa98f8d617698225fb4190f64 | |
parent | 5691afc709955e6d08588428fb86f5f5eb715f2c (diff) |
sys-fs/vhba : autoload the required kernel module at boot
-rw-r--r-- | sys-fs/vhba/files/vhba-kmod | 1 | ||||
-rw-r--r-- | sys-fs/vhba/files/vhba-udev | 3 | ||||
-rw-r--r-- | sys-fs/vhba/vhba-20190831-r2.ebuild (renamed from sys-fs/vhba/vhba-20190831-r1.ebuild) | 12 |
3 files changed, 10 insertions, 6 deletions
diff --git a/sys-fs/vhba/files/vhba-kmod b/sys-fs/vhba/files/vhba-kmod new file mode 100644 index 00000000..408a64c5 --- /dev/null +++ b/sys-fs/vhba/files/vhba-kmod @@ -0,0 +1 @@ +vhba diff --git a/sys-fs/vhba/files/vhba-udev b/sys-fs/vhba/files/vhba-udev new file mode 100644 index 00000000..043f7963 --- /dev/null +++ b/sys-fs/vhba/files/vhba-udev @@ -0,0 +1,3 @@ +# do not edit this file, it will be overwritten on update +# +KERNEL=="vhba_ctl", MODE="0660", OWNER="root", GROUP="cdrom" diff --git a/sys-fs/vhba/vhba-20190831-r1.ebuild b/sys-fs/vhba/vhba-20190831-r2.ebuild index 2af7646f..035f7a1f 100644 --- a/sys-fs/vhba/vhba-20190831-r1.ebuild +++ b/sys-fs/vhba/vhba-20190831-r2.ebuild @@ -35,11 +35,11 @@ src_compile() { src_install() { dodoc AUTHORS ChangeLog README - einfo "Generating udev rules ..." dodir "$(get_udevdir)"/rules.d - cat > "${D}/$(get_udevdir)"/rules.d/69-vhba.rules <<-EOF || die - # do not edit this file, it will be overwritten on update - # - KERNEL=="vhba_ctl", MODE="0660", OWNER="root", GROUP="cdrom" - EOF + insinto "$(get_udevdir)"/rules.d + newins "${FILESDIR}/${PN}"-udev 69-vhba.rules + + dodir /etc/modules-load.d + insinto /etc/modules-load.d + newins "${FILESDIR}/${PN}"-kmod vhba.conf } |