(2006-08-06) rescue-bootcd
This commit is contained in:
40
rootfs/dodeeds.sh
Executable file
40
rootfs/dodeeds.sh
Executable file
@@ -0,0 +1,40 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user