]>
git.ipfire.org Git - people/dweismueller/ipfire-2.x.git/blob - src/hwinfo/hwbootscan.rc
26484eafe36a3fdd9a6fc28046a78f74c9ba5574
2 # Copyright (c) 2002 SuSE GmbH Nuernberg, Germany. All rights reserved.
4 # Author: Marcus Meissner <meissner@suse.de>
8 # System startup script for boot hw probing and reconfiguration
13 # X-UnitedLinux-Should-Start: hotplug kbd
15 # Default-Start: 2 3 5
17 # Description: Hardware scan and reconfiguration on boot.
20 HWBOOTSCAN_BIN
=/usr
/sbin
/hwbootscan
21 test -x $HWBOOTSCAN_BIN ||
exit 5
23 # Shell functions sourced from /etc/rc.status:
24 # rc_check check and set local and overall rc status
25 # rc_status check and set local and overall rc status
26 # rc_status -v ditto but be verbose in local rc status
27 # rc_status -v -r ditto and clear the local rc status
28 # rc_failed set local and overall rc status to failed
29 # rc_reset clear local rc status (overall remains)
30 # rc_exit exit appropriate to overall rc status
33 # First reset status of this service
36 # Return values acc. to LSB for all commands but status:
39 # 2 - invalid or excess args
40 # 3 - unimplemented feature (e.g. reload)
41 # 4 - insufficient privilege
42 # 5 - program not installed
43 # 6 - program not configured
44 # 7 - program is not running
46 # Note that starting an already running service, stopping
47 # or restarting a not-running service as well as the restart
48 # with force-reload (in case signalling is not supported) are
49 # considered a success.
53 echo -n "Starting hardware scan on boot"
55 [ -n "$REDIRECT" ] && exec 0<> $REDIRECT 1>&0 2>&0
64 ## Stop the service and regardless of whether it was
65 ## running or not, start it again.
66 # Remember status and be quiet
70 ## Signal the daemon to reload its config. Most daemons
71 ## do this on signal 1 (SIGHUP).
72 ## If it does not support it, restart.
73 # Remember status and be quiet
77 ## Like force-reload, but if daemon does not support
78 ## signalling, do nothing (!)
80 # If it supports signalling:
84 ## Check status with checkproc(8), if process is running
85 ## checkproc will return with exit status 0.
87 # Status has a slightly different for the status command:
89 # 1 - service dead, but /var/run/ pid file exists
90 # 2 - service dead, but /var/lock/ lock file exists
91 # 3 - service not running
96 echo "Usage: $0 {start|stop|restart|force-reload|reload|status}"