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

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

1.1       lukem       1: #!/bin/sh
                      2: #
1.4     ! nisimura    3: # $NetBSD: virecover,v 1.3 2000/07/26 00:11:49 lukem Exp $
1.1       lukem       4: #
                      5:
                      6: # PROVIDE: virecover
1.3       lukem       7: # REQUIRE: mountcritremote
1.1       lukem       8: #
                      9: # XXX: should require `mail'!
                     10:
                     11: . /etc/rc.subr
                     12:
                     13: name="virecover"
                     14: start_cmd="virecover_start"
                     15: stop_cmd=":"
                     16:
                     17: virecover_start()
                     18: {
1.4     ! nisimura   19:        recover=`find /var/tmp/vi.recover -name 'recover.*' -type f -print`
        !            20:        if [ -n "$recover" ]; then
1.1       lukem      21:                echo "Preserving editor files."
1.4     ! nisimura   22:                for i in $recover; do
        !            23:                        sendmail -t < $i
1.1       lukem      24:                done
                     25:        fi
                     26: }
                     27:
1.2       lukem      28: load_rc_config $name
1.1       lukem      29: run_rc_command "$1"

CVSweb <webmaster@jp.NetBSD.org>