updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / ioreniced / ioreniced.install
blob1c9e6c1862b75add6fddc38271fdb8a68d2fd24f
1 post_install() {
2         echo " "
3         echo " "
4         echo "  ATTENTION ioReniceD:"
5         echo "  --------------------"
6         echo " "
7         echo "  You NEED to have the Kernel CFQ scheduler enabled to use it."
8         echo "  Check: cat /sys/block/[sh]d[a-z]*/queue/scheduler"
9         echo "  Add this kernel parameter to your bootloader config if necessary: elevator=cfq"
10         echo " " 
11         echo "  Usage:"
12         echo "  - check the config: /etc/conf.d/ioreniced"
13         echo "  - run the daemon: /etc/rc.d/ioreniced start"
14         echo "  - watch the logs: /var/log/ioreniced.log for debug output"
15         echo " "
16         echo " "
21 post_upgrade() {
22         echo " "
23         echo " "
24         echo "  ATTENTION ioReniceD:"
25         echo "  --------------------"
26         echo " "
27         echo "  You NEED to have the Kernel CFQ scheduler enabled to use it."
28         echo "  Check: cat /sys/block/[sh]d[a-z]*/queue/scheduler"
29         echo "  Add this kernel parameter to your bootloader config if necessary: elevator=cfq"
30         echo " " 
31         echo "  Usage:"
32         echo "  - check the config: /etc/conf.d/ioreniced"
33         echo "  - run the daemon: /etc/rc.d/ioreniced start"
34         echo "  - watch the logs: /var/log/ioreniced.log for debug output"
35         echo " "
36         echo " "
39 post_remove() {
40         if [ -e "/var/log/ioreniced.log" ] ; then
41                 rm -rf /var/log/ioreniced.log
42         fi
45 op=$1
46 shift
47 $op $*