summaryrefslogtreecommitdiff
path: root/sys-kernel
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2019-04-21 17:52:09 +0200
committerKarel Kočí <cynerd@email.cz>2019-04-21 17:52:09 +0200
commitd7cd4ab2437f5a66e1593b36457b657abc199fe7 (patch)
tree484f2e207efcc5cefd5cd5b09e43ac8e10495a35 /sys-kernel
parent163c8d4b9e4f135cf36718cba56d08fcd46f4fc8 (diff)
downloadgentoo-personal-overlay-d7cd4ab2437f5a66e1593b36457b657abc199fe7.tar.gz
gentoo-personal-overlay-d7cd4ab2437f5a66e1593b36457b657abc199fe7.tar.bz2
gentoo-personal-overlay-d7cd4ab2437f5a66e1593b36457b657abc199fe7.zip
sys-kernel/bfq-scheduler: add as new package
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/bfq-scheduler/bfq-scheduler-1.0-r1.ebuild16
-rw-r--r--sys-kernel/bfq-scheduler/files/60-bfq-sd.rules1
2 files changed, 17 insertions, 0 deletions
diff --git a/sys-kernel/bfq-scheduler/bfq-scheduler-1.0-r1.ebuild b/sys-kernel/bfq-scheduler/bfq-scheduler-1.0-r1.ebuild
new file mode 100644
index 0000000..fa8213e
--- /dev/null
+++ b/sys-kernel/bfq-scheduler/bfq-scheduler-1.0-r1.ebuild
@@ -0,0 +1,16 @@
+EAPI=6
+
+DESCRIPTION="udev rules to enable BFQ scheduler on all /dev/sd* drives"
+HOMEPAGE="http://git.cynerd.cz/gentoo-personal-overlay/"
+S="${WORKDIR}"
+
+LICENSE="GPL-3.0+"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+RDEPEND="virtual/udev"
+
+src_install() {
+ insinto /lib64/udev/rules.d
+ doins "${FILESDIR}/60-bfq-sd.rules"
+}
diff --git a/sys-kernel/bfq-scheduler/files/60-bfq-sd.rules b/sys-kernel/bfq-scheduler/files/60-bfq-sd.rules
new file mode 100644
index 0000000..7799518
--- /dev/null
+++ b/sys-kernel/bfq-scheduler/files/60-bfq-sd.rules
@@ -0,0 +1 @@
+ACTION=="add|change", KERNEL=="sd*[!0-9]", ATTR{queue/scheduler}="bfq"