This repository has been archived on 2023-08-20. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
RescueBootCD/rootfs/dodeeds.sh

41 lines
609 B
Bash
Executable File

#!/bin/sh
# preguntar que se desea hacer
dialog --clear --title "Disco Recuperacion." \
--menu "Selecciona la accion a realizar." 20 51 4 \
"1" "Restaurar particion." \
"2" "Consola." \
"3" "Salir." 2> /tmpf
retval=$?
case $retval in
0)
echo "`cat /tmpf` elegido."
if test "`cat /tmpf`" = "1" ; then
echo "restaurar"
/restaurar.sh
fi
if test "`cat /tmpf`" = "2" ; then
echo "Consola"
/bin/sh
fi
;;
1)
echo "Salida";;
255)
if test -s /tmpf ; then
cat /tmpf
else
echo "Salida"
fi
;;
esac
# reiniciar
/sbin/reboot