[BACK]Return to raidframeparity CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / etc / rc.d

Annotation of src/etc/rc.d/raidframeparity, Revision 1.4

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

CVSweb <webmaster@jp.NetBSD.org>