slitaz-tools rev 533

Fix error in subox. Error was 'line 78: {AUTO_SAVE_PASSWD=false}: not found' and 'sh:true: unknown operand'.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Dec 26 16:44:14 2010 +0000 (2010-12-26)
parents 0c529c425b26
children a5216abd91c5
files tinyutils/subox
line diff
     1.1 --- a/tinyutils/subox	Fri Dec 24 18:57:49 2010 +0100
     1.2 +++ b/tinyutils/subox	Sun Dec 26 16:44:14 2010 +0000
     1.3 @@ -73,8 +73,9 @@
     1.4  # Check if we have a saved passwd.
     1.5  if [ -s $HOME/.config/slitaz/subox.conf ]; then
     1.6  	PASSWD=`cat $HOME/.config/slitaz/subox.conf`
     1.7 -		[ -n "$PASSWD" ] && SU_DIALOG="$SU_DIALOG <default>$PASSWD</default>" && AUTO_SAVED_PASSWD=true
     1.8 -else {AUTO_SAVED_PASSWD=false}	
     1.9 +	[ -n "$PASSWD" ] && SU_DIALOG="$SU_DIALOG <default>$PASSWD</default>" && AUTO_SAVED_PASSWD=true
    1.10 +else 
    1.11 +AUTO_SAVED_PASSWD=false
    1.12  fi
    1.13  
    1.14  export SU_DIALOG=''${SU_DIALOG}'