Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-release > by-pkgid > b05ea03ccf8aa76855504d6a005ca785 > files > 1145

howto-html-es-10-4mdv2008.1.noarch.rpm

<HTML>
<HEAD>
<TITLE>Sistema de Archivos Criptogr&aacute;fico bajo Linux (CFS) COMO: scripts</TITLE>
</HEAD>
<BODY>
<A HREF="SAC-Como-9.html">Anterior</A>
<A HREF="SAC-Como-11.html">Siguiente</A>
<A HREF="SAC-Como.html#toc10">Indice</A>
<HR>
<H2><A NAME="s10">10. scripts</A></H2>


<P>
<BLOCKQUOTE><CODE>
<PRE>
#!/bin/sh
#
# $Header: /Secure/secure-doc/linux/CFS/RCS/CFS-Doc,v 1.4 1996/03/15 04:49:37 alex Exp alex $
#
# cfsfs         Crypto filesystem 
#
# Author:       Alexander O. Yuriev &lt;alex@bach.cis.temple.edu&gt;
#               Derived from cron               

# Cargamos la librar&iacute;a de funciones.
. /etc/rc.d/init.d/functions

# Averiguamos c&oacute;mo se nos ha ejecutado.
case &quot;$1&quot; in
 start)
        echo -n &quot;Arrancando sistema de ficheros encriptado: &quot;
        if [ -x /usr/local/sbin/cfsd ]; then
                /usr/local/sbin/cfsd &gt; /dev/null
                /bin/mount -o port=3049,intr localhost:/.cfsfs /securefs
                echo &quot;listo&quot;
        else 
                echo -n &quot;El sistema de ficheros encriptados no ha sido iniciado&quot;
        fi
        touch /var/lock/subsys/cfsfs
        ;;
 stop)
        echo -n &quot;Deteniendo sistema de ficheros encriptado: &quot;
        umount /securefs
        killproc cfsd
        echo
        rm -f /var/lock/subsys/cfsfs
        ;;
 *)
        echo &quot;Empleo: cfsfs {start|stop}&quot;
        exit 1
esac

exit 0
</PRE>
</CODE></BLOCKQUOTE>
</P>

<HR>
<A HREF="SAC-Como-9.html">Anterior</A>
<A HREF="SAC-Como-11.html">Siguiente</A>
<A HREF="SAC-Como.html#toc10">Indice</A>
</BODY>
</HTML>