gentoo: local.d/{hpet,ncq_noop,sysctl,vm}.start added

This commit is contained in:
Kolan Sh 2014-06-17 13:43:37 +04:00
parent daa980ef73
commit 5496cde0cb
4 changed files with 27 additions and 0 deletions

7
local.d/hpet.start Executable file
View File

@ -0,0 +1,7 @@
# /etc/conf.d/local.start
# This is a good place to load any misc programs
# on startup (use &>/dev/null to hide output)
echo hpet >/sys/devices/system/clocksource/clocksource0/current_clocksource

11
local.d/ncq_noop.start Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
# Set on noop scheduler for hdds with NCQ
for D in /sys/block/sd?; do
S=$D/queue/scheduler
Q=$D/device/queue_depth
if [[ "$(cat $Q)" == "31" ]]; then
echo $D: $(cat $S) - set schedule to noop
echo noop > $S
fi
done

3
local.d/sysctl.start Executable file
View File

@ -0,0 +1,3 @@
# /etc/conf.d/local.start
sysctl --system

6
local.d/vm.start Executable file
View File

@ -0,0 +1,6 @@
# /etc/conf.d/local.start
# This is a good place to load any misc programs
# on startup (use &>/dev/null to hide output)
chmod o+rw /dev/kvm