Ver Mensaje Individual
  #3 (permalink)  
Antiguo 03/02/2003, 15:50
Avatar de Ferdy
Ferdy
Colaborador
 
Fecha de Ingreso: junio-2001
Ubicación: España
Mensajes: 1.430
Antigüedad: 22 años, 11 meses
Puntos: 0
Bueno, aquí te paso otro, tu eliges ;)

Código:
#!/bin/bash

if [ `mount | grep --count /dev/cdrom` -gt 0 ];
then
     eject /dev/cdrom
fi
Un Saludo.Ferdy
__________________
Born to be free
Por una sociedad del conocimiento libre