slitaz-tools rev 502
fix my previous commit.
author | frederic guilbault <fredericguilbault@live.ca> |
---|---|
date | Tue Oct 19 23:20:12 2010 +0000 (2010-10-19) |
parents | a8fe4b3aaf04 |
children | 5287c16110be |
files | tinyutils/subox |
line diff
1.1 --- a/tinyutils/subox Tue Oct 19 22:02:18 2010 +0000 1.2 +++ b/tinyutils/subox Tue Oct 19 23:20:12 2010 +0000 1.3 @@ -64,7 +64,7 @@ 1.4 <hbox> 1.5 <checkbox> 1.6 <variable>AUTOSAVE</variable>' 1.7 - 1.8 + <label>"'`gettext "Autosave password"`'"</label> 1.9 if [ $AUTO_SAVED_PASSWD = "true" ] 1.10 then SU_DIALOG="$SU_DIALOG <default>true</default>" 1.11 else SU_DIALOG="$SU_DIALOG <default>false</default>" 1.12 @@ -77,8 +77,8 @@ 1.13 <action>echo $PASSWD | su -c "$SU_CMD" &</action> 1.14 <action>[ $AUTOSAVE == true ] && echo $PASSWD > '$HOME/.config/slitaz/subox.conf'</action> 1.15 <action>[ $AUTOSAVE == true ] && chmod 0600 '$HOME/.config/slitaz/subox.conf'</action> 1.16 + <action>[ $AUTOSAVE == false ] && cat /dev/null > '$HOME/.config/slitaz/subox.conf'</action> 1.17 <action type="closewindow">SU_DIALOG</action> 1.18 - <action>[ $AUTOSAVE == false ] && cat /dev/null > '$HOME/.config/slitaz/subox.conf'</action> 1.19 </button> 1.20 <button cancel></button> 1.21 </hbox>