Le 22 avr. 09 à 19:53, François Revol a écrit :
Looks good to me... You could try: installer=`/bin/alert "Do you wish to run the Installer or continue booting to the Desktop?" "Installer" "Desktop"` /bin/alert "result: [$installer]" "ok" to make sure bash doesn't insert some whitespace in the result...
Maybe it keeps the \n at the end of the line... It would be safer to use something like this :alert 'Do you wish to run the Installer or continue booting to the Desktop?' 'Installer' 'Desktop'
if [ $? -eq 0 ]; then # Start installer here... else # Start Desktop here... fi($? = 0 if the first button was pressed, 1 for the second and 2 for the third)
By the way, why not put the safe mode boot process in another script ? The main Bootscript would be cleaner...
Vincent