[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.3

1.1       lukem       1: #!/bin/sh
                      2: #
1.3     ! lukem       3: # $NetBSD: virecover,v 1.2 2000/05/13 08:45:10 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: {
                     19:        #       XXX: replace me with a script that works!
                     20:        #
                     21:        virecovery=`echo /var/tmp/vi.recover/recover.*`
                     22:        if [ "$virecovery" != "/var/tmp/vi.recover/recover.*" ]; then
                     23:                echo "Preserving editor files."
                     24:                for i in $virecovery; do
                     25:                        if [ -f $i ]; then
                     26:                                sendmail -t < $i
                     27:                        fi
                     28:                done
                     29:        fi
                     30: }
                     31:
1.2       lukem      32: load_rc_config $name
1.1       lukem      33: run_rc_command "$1"

CVSweb <webmaster@jp.NetBSD.org>