<HTML> <HEAD> <TITLE>Sistema de Archivos Criptográ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 <alex@bach.cis.temple.edu> # Derived from cron # Cargamos la libraría de funciones. . /etc/rc.d/init.d/functions # Averiguamos cómo se nos ha ejecutado. case "$1" in start) echo -n "Arrancando sistema de ficheros encriptado: " if [ -x /usr/local/sbin/cfsd ]; then /usr/local/sbin/cfsd > /dev/null /bin/mount -o port=3049,intr localhost:/.cfsfs /securefs echo "listo" else echo -n "El sistema de ficheros encriptados no ha sido iniciado" fi touch /var/lock/subsys/cfsfs ;; stop) echo -n "Deteniendo sistema de ficheros encriptado: " umount /securefs killproc cfsd echo rm -f /var/lock/subsys/cfsfs ;; *) echo "Empleo: cfsfs {start|stop}" 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>