Debian Codegraph @

tools/hardinfo2

raw
1 #!/bin/sh
2 # Hardinfo2 support for root access
3 # chkconfig: - 99 10
4 # description: hardinfo2 support for root access
5
6 ### BEGIN INIT INFO
7 # Provides: hardinfo2
8 # Required-Start: $local_fs
9 # Required-Stop: $local_fs
10 # Default-start: 2 3 4 5
11 # Default-Stop:
12 # Short-Description: start and stop hardinfo2
13 # Description: hardinfo2 support for root access
14 ### END INIT INFO
15
16
17 start() {
18 /usr/bin/hwinfo2_fetch_sysdata
19 return 0
20 }
21
22 stop() {
23 return 0
24 }
25
26 # See how we were called.
27 case "$1" in
28 start)
29 start
30 ;;
31 stop)
32 stop
33 ;;
34 status)
35 status $prog
36 ;;
37 restart|force-reload)
38 stop
39 start
40 ;;
41 try-restart|condrestart)
42 if status $prog > /dev/null; then
43 stop
44 start
45 fi
46 ;;
47 reload)
48 exit 3
49 ;;
50 *)
51 echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
52 exit 2
53 esac
54
55 exit 0