diff -urN pxes-1.0.orig/stock/dist/etc/init.d/functions pxes-1.0/stock/dist/etc/init.d/functions --- pxes-1.0.orig/stock/dist/etc/init.d/functions 2005-04-29 23:54:47.000000000 +0000 +++ pxes-1.0/stock/dist/etc/init.d/functions 2005-08-29 11:02:49.000000000 +0000 @@ -1851,9 +1851,27 @@ MSG='Continuar' ;; + 'Reboot') + MSG='Reiniciar' + ;; + + 'Shutdown') + MSG='Apagar' + ;; + 'Please press the button to continue') - MSG='Por favor presione el boton para continuar' + #MSG='Por favor presione el boton para continuar' + MSG='Por favor presione continuar para iniciar una nueva sesión' ;; + + 'Rebooting, please wait...') + MSG='Reiniciando, por favor, espere...' + ;; + + 'Halting, please wait...') + MSG='Apagando, por favor, espere...' + ;; + esac ;; esac diff -urN pxes-1.0.orig/stock/dist/usr/share/xtools pxes-1.0/stock/dist/usr/share/xtools --- pxes-1.0.orig/stock/dist/usr/share/xtools 2005-05-03 05:38:24.000000000 +0000 +++ pxes-1.0/stock/dist/usr/share/xtools 2005-08-31 09:01:43.000000000 +0000 @@ -62,7 +62,11 @@ { MSG="${@:-Please press the button to continue}" MSG=$(translate "$(echo -e $MSG)") + MSGR=$(translate 'Rebooting, please wait...') + MSGS=$(translate 'Halting, please wait...') BTN=$(translate 'Continue') + BTNR=$(translate 'Reboot') + BTNS=$(translate 'Shutdown') if is_x_running then @@ -71,11 +75,23 @@ #Please press the button to continue # #" >/dev/null 2>&1 - xmessage $(xmsgo) -name Prompt -button $BTN:0 -default $BTN " + xmessage $(xmsgo) -name Prompt -button $BTN:0,$BTNR:1,$BTNS:2 -default $BTN " $MSG + " > /dev/null 2>&1 + SALIDA=$? + if [ $SALIDA -eq 1 ] + then + xmessage $(xmsgo) -name Prompt "${MSGR}" > /dev/null 2>&1 & + reboot + fi + if [ $SALIDA -eq 2 ] + then + xmessage $(xmsgo) -name Prompt "${MSGS}" > /dev/null 2>&1 & + poweroff + fi else #chvt 1 # would be nice... pressreturn