miércoles, junio 14, 2006

Script para abrir o cerrar unidad de cdrom

#!/bin/bash
#Abrir o cerrar CD\DVD ROM
menu ()
{
clear
echo
echo "##############################"
echo "# #"
echo "# Abre e fecha o CD\DVD ROM #"
echo "# #"
echo "##############################"
echo
echo ">>>Opciones:"
echo
echo "[1] Abrir CD\DVD ROM"
echo "[2] Cerrar CD\DVD ROM"
echo "[3] Ir a la pagina de Autor"
echo "[0] Salir"
echo
}

central ()
{
menu
read opcion
while [ $opcion != "s" ];
do
menu
case $opcion in
1) abrir;;
2) cerrar;;
3) forum;;
0) salir;;
esac
read opcion
done
}

abrir ()
{
clear
echo
echo "Abriendo CD\DVD ROM..."
echo
eject
clear
central
}

cerrar ()
{
clear
echo
echo "Cerrando CD\DVD ROM..."
echo
eject -t
clear
central
}

forum ()
{
clear
echo
echo "Abrinendo Pagina del autor"
echo
firefox http://cbittachira.blogspot.com/
clear
central
}

salir ()
{
clear
exit
}

clear
central
clear

1 comentario:

Anónimo dijo...

I found this site using [url=http://google.com]google.com[/url] And i want to thank you for your work. You have done really very good site. Great work, great site! Thank you!

Sorry for offtopic