Annotation of src/etc/rc.d/raidframeparity, Revision 1.3
1.1 abs 1: #!/bin/sh
2: #
1.3 ! christos 3: # $NetBSD: raidframeparity,v 1.2 2004/08/13 18:08:03 mycroft Exp $
1.1 abs 4: #
5:
6: # REQUIRE: quota
7:
1.2 mycroft 8: $_rc_subr_loaded . /etc/rc.subr
1.1 abs 9:
10: name="raidframeparity"
11: start_cmd="raidframeparity_start"
12: stop_cmd=":"
13:
14: raidframeparity_start()
15: {
16: # Initiate parity/mirror reconstruction as needed, in the background.
17: #
18: (
1.3 ! christos 19: for dev in $(sysctl -n hw.disknames); do
1.1 abs 20: case $dev in
21: raid[0-9]*)
22: raidctl -P $dev
23: ;;
24: esac
25: done
26: ) &
27: }
28:
29: load_rc_config $name
30: run_rc_command "$1"
CVSweb <webmaster@jp.NetBSD.org>