Router1@RT-AC68P-0730:/tmp/home/root# sh -x /usr/sbin/amtm
+ add=/jffs/addons/amtm
+ amtmURL=
https://fwupdate.asuswrt-merlin.net/amtm_fw
+ amtmRev=1
+ [ -f /jffs/addons/amtm/a_fw/amtm.mod ]
+ run_amtm
+ [ ! -f /jffs/addons/amtm/a_fw/amtm.mod ]
+ init_amtm
+ [ -d /jffs/addons/amtm ]
+ fmd=1
+ mkdir -p /jffs/addons/amtm/a_fw
+ [ ! -d /jffs/addons/amtm ]
+ mv /jffs/amtm-* /jffs/addons/amtm
+ mv /jffs/.amtm_* /jffs/addons/amtm
+ c_t
+ divconf=/opt/share/diversion/.conf/diversion.conf
+ [ -f /jffs/addons/amtm/.amtm_theme ]
+ [ -s /opt/share/diversion/.conf/diversion.conf ]
+ [ ]
+ theme_amtm new
+ p_e_l
+ p_r_l
+ echo _____________________________________________
_____________________________________________
+ echo
+ [ -z new ]
+ printf Select a theme that works best in your\n SSH client. All colors in use are shown.\n\n
Select a theme that works best in your
SSH client. All colors in use are shown.
+ themes=standard green blue blue_on_white high_contrast reduced reduced_w reduced_cw reduced_b reduced_cb
+ i=1
+ ncorr=
+ theme_standard
+ R=
+ R_BG=
+ E_BG=
+ GN=
+ GN_BG=
+ B=
+ GY=
+ NC=
+ COR=20
+ printf %-22s %-24s %-14s\n 1. standard standard standard
1. standard standard standard
+ printf %-19s %-24s %-s\n standard standard standard
standard standard standard
+ p_e_l
+ p_r_l
+ echo _____________________________________________
_____________________________________________
+ echo
+ i=2
+ unset corr2 corr1 ncorr
+ ncorr=
+ theme_green
+ R=
+ R_BG=
+ E_BG=
+ GN=
+ GN_BG=
+ B=
+ GY=
+ NC=
+ COR=20
+ printf %-22s %-24s %-14s\n 2. green green green
2. green green green
+ printf %-19s %-24s %-s\n green green green
green green green
+ p_e_l
+ p_r_l
+ echo _____________________________________________
_____________________________________________
+ echo
+ i=3
+ unset corr2 corr1 ncorr
+ ncorr=
+ corr1=-1
+ corr2=-1
+ theme_blue
+ R=
+ R_BG=
+ E_BG=
+ GN=
+ GN_BG=
+ B=
+ GY=
+ NC=
+ COR=21
+ printf %-22s %-25s %-15s\n 3. blue blue blue
3. blue blue blue
+ printf %-20s %-24s %-s\n blue blue blue
blue blue blue
+ p_e_l
+ p_r_l
+ echo _____________________________________________
_____________________________________________
+ echo
+ i=4
+ unset corr2 corr1 ncorr
+ ncorr=
+ corr2=-1
+ theme_blue_on_white
+ R=
+ R_BG=
+ E_BG=
+ GN=
+ GN_BG=
+ B=
+ GY=
+ NC=
+ COR=21
+ printf %-23s %-25s %-15s\n 4. blue_on_white blue_on_white blue_on_wh
4. blue_on_white blue_on_white blue_on_wh
+ printf %-20s %-24s %-s\n blue_on_white blue_on_white blue_on_wh
blue_on_white blue_on_white blue_on_wh
+ p_e_l
+ p_r_l
+ echo _____________________________________________
_____________________________________________
+ echo
+ i=5
+ unset corr2 corr1 ncorr
+ ncorr=
+ theme_high_contrast
+ R=
+ R_BG=
+ E_BG=
+ GN=
+ GN_BG=
+ B=
+ GY=
+ NC=
+ COR=20
+ printf %-22s %-24s %-14s\n 5. high_contrast high_contrast high_contr
5. high_contrast high_contrast high_contr
+ printf %-19s %-24s %-s\n high_contrast high_contrast high_contr
high_contrast high_contrast high_contr
+ p_e_l
+ p_r_l
+ echo _____________________________________________
_____________________________________________
+ echo
+ i=6
+ unset corr2 corr1 ncorr
+ ncorr=
+ corr2=-1
+ theme_reduced
+ R=
+ R_BG=
+ E_BG=
+ GN=
+ GN_BG=
+ B=
+ GY=
+ NC=
+ COR=21
+ printf %-23s %-25s %-15s\n 6. reduced reduced reduced
6. reduced reduced reduced
+ printf %-20s %-24s %-s\n reduced reduced reduced
reduced reduced reduced
+ p_e_l
+ p_r_l
+ echo _____________________________________________
_____________________________________________
+ echo
+ i=7
+ unset corr2 corr1 ncorr
+ ncorr=
+ corr2=-3
+ theme_reduced_w
+ R=
+ R_BG=
+ E_BG=
+ GN=
+ GN_BG=
+ B=
+ GY=
+ NC=
+ COR=23
+ printf %-25s %-27s %-17s\n 7. reduced_w reduced_w reduced_w
7. reduced_w reduced_w reduced_w
+ printf %-22s %-24s %-s\n reduced_w reduced_w reduced_w
reduced_w reduced_w reduced_w
+ p_e_l
+ p_r_l
+ echo _____________________________________________
_____________________________________________
+ echo
+ i=8
+ unset corr2 corr1 ncorr
+ ncorr=
+ corr2=-3
+ theme_reduced_cw
+ R=
+ R_BG=
+ E_BG=
+ GN=
+ GN_BG=
+ B=
+ GY=
+ NC=
+ COR=23
+ printf %-25s %-27s %-17s\n 8. reduced_cw reduced_cw reduced_cw
8. reduced_cw reduced_cw reduced_cw
+ printf %-22s %-24s %-s\n reduced_cw reduced_cw reduced_cw
reduced_cw reduced_cw reduced_cw
+ p_e_l
+ p_r_l
+ echo _____________________________________________
_____________________________________________
+ echo
+ i=9
+ unset corr2 corr1 ncorr
+ ncorr=
+ corr2=+5
+ theme_reduced_b
+ R=
+ R_BG=
+ E_BG=
+ GN=
+ GN_BG=
+ B=
+ GY=
+ NC=
+ COR=21
+ printf %-23s %-25s %-15s\n 9. reduced_b reduced_b reduced_b
9. reduced_b reduced_b reduced_b
+ printf %-20s %-30s %-s\n reduced_b reduced_b reduced_b
reduced_b reduced_b reduced_b
+ p_e_l
+ p_r_l
+ echo _____________________________________________
_____________________________________________
+ echo
+ i=10
+ unset corr2 corr1 ncorr
+ ncorr=
+ corr1=-2
+ corr2=+3
+ ncorr=
+ theme_reduced_cb
+ R=
+ R_BG=
+ E_BG=
+ GN=
+ GN_BG=
+ B=
+ GY=
+ NC=
+ COR=23
+ printf %-23s %-27s %-17s\n 10. reduced_cb reduced_cb reduced_cb
10. reduced_cb reduced_cb reduced_cb
+ printf %-22s %-30s %-s\n reduced_cb reduced_cb reduced_cb
reduced_cb reduced_cb reduced_cb
+ p_e_l
+ p_r_l
+ echo _____________________________________________
_____________________________________________
+ echo
+ i=11
+ unset corr2 corr1 ncorr
+ theme_basic
+ R=
+ R_BG=
+ E_BG=
+ GN=
+ GN_BG=
+ B=
+ GY=
+ NC=
+ COR=15
+ printf 11. basic basic\n
11. basic basic
+ p_r_l
+ echo _____________________________________________
_____________________________________________
+ ton=11
+ noad=
+ [ -f /opt/share/diversion/.conf/diversion.conf ]
+ printf \n The basic and reduced themes use no or fewer\n colors, service states may not be visible.\n
The basic and reduced themes use no or fewer
colors, service states may not be visible.
+ theme_standard
+ R=
+ R_BG=
+ E_BG=
+ GN=
+ GN_BG=
+ B=
+ GY=
+ NC=
+ COR=20
+ true
+ [ -z new ]
+ printf \n Select amtm theme: [1-11]
Select amtm theme: [1-11] + read -r continue