xf.li | 8611891 | 2025-03-19 20:07:27 -0700 | [diff] [blame^] | 1 | #!/bin/sh |
| 2 | ## |
| 3 | # $Id: zte_qrcode_create.sh,v 0.0.0.1 2013.05.06 liuweipeng Exp $ |
| 4 | # |
| 5 | # usage: zte_qrcode_create.sh |
| 6 | # |
| 7 | |
| 8 | #wifi_ssid_qrcode_name='/usr/zte_web/web/img/qrcode_ssid_wifikey.png' |
| 9 | #wifi_ssid_qrcode_name_bmp='/usr/zte/zte_conf/mmi/mmi_image/ssid_wifikey.bmp' |
| 10 | |
| 11 | #multi_wifi_ssid_qrcode_name='/usr/zte_web/web/img/qrcode_multi_ssid_wifikey.png' |
| 12 | #multi_wifi_ssid_qrcode_name_bmp='/usr/zte/zte_conf/mmi/mmi_image/multi_ssid_wifikey.bmp' |
| 13 | |
| 14 | #local_domain_qrcode_name='/usr/zte_web/web/img/qrcode_local_domaind.png' |
| 15 | #local_domain_qrcode_name_bmp='/usr/zte/zte_conf/mmi/mmi_image/local_domaind.bmp' |
| 16 | |
| 17 | reg_id_text=`nv get reg_id` |
| 18 | dl_url_text=`nv get app_dl_url` |
| 19 | |
| 20 | device_qrcode_name="/etc_rw/zcore/system/qrcode_devid.png" |
| 21 | appdl_qrcode_name="/etc_rw/zcore/system/qrcode_appdl.png" |
| 22 | |
| 23 | |
| 24 | echo "device_qrcode_name=$device_qrcode_name" |
| 25 | |
| 26 | echo "enter the device id qrcode create" |
| 27 | |
| 28 | |
| 29 | rm -rf $device_qrcode_name |
| 30 | rm -rf $appdl_qrcode_name |
| 31 | |
| 32 | qrencode -o $appdl_qrcode_name -m 1 -s 7 "$dl_url_text" |
| 33 | qrencode -o $device_qrcode_name -m 1 -s 7 "$reg_id_text" |
| 34 | |
| 35 | |