slitaz-tools rev 935
tazx: fix rename
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Sun Jan 11 23:21:03 2015 +0200 (2015-01-11) |
parents | 90d52d0d4775 |
children | e5d5980ecf4e |
files | tinyutils/tazx |
line diff
1.1 --- a/tinyutils/tazx Fri Dec 26 14:10:13 2014 +0200 1.2 +++ b/tinyutils/tazx Sun Jan 11 23:21:03 2015 +0200 1.3 @@ -312,7 +312,7 @@ 1.4 dialog_end 1.5 1.6 case $app in 1.7 - RENAMED) # like: RENAMED EDITOR myeditor 1.8 + RENAMED*) # like: RENAMED EDITOR myeditor 1.9 appname=$(echo $app | cut -d" " -f3) 1.10 app=$(echo $app | cut -d" " -f2) ;; 1.11 *) 1.12 @@ -325,6 +325,7 @@ 1.13 inst_pkg $appname 1.14 fi 1.15 if [ -z $(busybox which $appname) ]; then 1.16 + inst_pkg $appname 1.17 inst_pkg $(lzcat $PKGS_DB/files.list.lzma | fgrep /bin/$appname | head -n1 | cut -d: -f1) 1.18 fi 1.19 sed -i "/$app/ s|=.*$|=\"$appname\"|" $user_conf 1.20 @@ -511,11 +512,11 @@ 1.21 set_depth() 1.22 { 1.23 case "$1" in 1.24 - 8|15|16|24) colors=$1 ;; 1.25 + 8|15|16|24|32) colors=$1 ;; 1.26 *) 1.27 exec 3>&1 1.28 colors=$($DIALOG --menu " " 12 12 12 \ 1.29 - 24 truecolor 16 hicolor 15 hicolor 8 256colors 2>&1 1>&3) 1.30 + 32 truecolor 24 truecolor 16 hicolor 15 hicolor 8 256colors 2>&1 1>&3) 1.31 dialog_end ;; 1.32 esac 1.33 sed 's|Monitor.*"$|&\n\tDefaultDepth '$colors'|' -i ${xorg_config}/70-Screen.conf 1.34 @@ -558,11 +559,13 @@ 1.35 bpp) 1.36 check_root 1.37 xorg_conf_d 1.38 + proc_cmdline 1.39 set_depth $2 ;; 1.40 1.41 xkb) 1.42 xkb ;; 1.43 1.44 + 1.45 *help|-h|-?) 1.46 emsg " 1.47 <b>tazx</b> - $(_ 'Configuration tool for SliTaz GNU/Linux')