File: init

package info (click to toggle)
hwtools 0.8-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,388 kB
  • ctags: 1,143
  • sloc: ansic: 6,031; asm: 2,223; makefile: 277; sh: 122; csh: 42
file content (41 lines) | stat: -rw-r--r-- 724 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#! /bin/sh
#
# hwtools	Tune up your hardware a bit
#

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

set -e

optimizehw() {
# Optimize interrupts. You might want to add parameters if you want
# to favor ttyS1 or ttyS0 or something else.
if command -v irqtune >/dev/null 2>&1; then
#   irqtune [PUT ARGS HERE]
#   echo -n " irqtune"
   true
fi

# configure QIC-02 interface
# see qic02conf(8)
# qic02conf --card= --port= --dma= --irq=
# echo -n " qic02conf"
}

case "$1" in
  start|restart|force-reload|reload)
	echo -n "Optimizing hardware..."
	optimizehw
	echo
	;;
  stop)
  	exit 0
	;;
  *)
	N=/etc/init.d/hwtools
	echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
	exit 1
	;;
esac

exit 0