blob: 781c4c5b0762002ef9ab6c36b580dac4f6f9bc0a [file] [log] [blame]
xf.li86118912025-03-19 20:07:27 -07001#!/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
17reg_id_text=`nv get reg_id`
18dl_url_text=`nv get app_dl_url`
19
20device_qrcode_name="/etc_rw/zcore/system/qrcode_devid.png"
21appdl_qrcode_name="/etc_rw/zcore/system/qrcode_appdl.png"
22
23
24echo "device_qrcode_name=$device_qrcode_name"
25
26echo "enter the device id qrcode create"
27
28
29rm -rf $device_qrcode_name
30rm -rf $appdl_qrcode_name
31
32qrencode -o $appdl_qrcode_name -m 1 -s 7 "$dl_url_text"
33qrencode -o $device_qrcode_name -m 1 -s 7 "$reg_id_text"
34
35