Huawei E3372 for mint17 with usb_modeswith
来源:互联网 发布:黄蓝带炒股软件 编辑:程序博客网 时间:2024/06/05 05:07
we need to run the script to switch USB modem mode for Ubuntu system .
#!/bin/bash#VERSION=22.001.03.01.03install_exit(){ echo "Preass any key to exit. " read COMMAND exit}WHEREWHOAMI="`which whoami`"ROOTORNOT="`$WHEREWHOAMI`"#echo "$ROOTORNOT"if [ "$ROOTORNOT" != "root" ]then echo "You must run the install process by root." install_exitfiCURRENTPATH="$(dirname "$0")"#echo "$CURRENTPATH"TMP_FILE_PATH="/tmp/MobileBrServ_AutoRun"INSTALL_FILE="/linux_mbb_install"SYSCONFIG_PATH="/ArConfig.dat"INSTALL_SHELL="/install"DATACARD_VERIFY="/DataCard_Verify"MBB_BIN_FILE="/mbbservice.bin"MBB_FILE="/mbbservice"SYSCONFIG_VALUE="VALUE"INSTALL_PATH="/usr/local/MobileBrServ"LOG_PATH="/tmp/MobileBrServ_autoinstall_log"#define the install variableFIRST_INSTALL="NO"INSTALL_OR_NOT="NO"echo "Current path = ${CURRENTPATH}" > ${LOG_PATH}check_ISO(){ echo "begin to verify ISO ..." | tee -a ${LOG_PATH} #> /dev/null 2>&1 #TESTFILE="${CURRENTPATH}" #echo "$TESTFILE" #read COMMAND if [ ! -f "${CURRENTPATH}${INSTALL_FILE}${MBB_BIN_FILE}" ] then echo "${CURRENTPATH}${INSTALL_FILE}${MBB_BIN_FILE}" echo "the .bin file is not exist! " | tee -a ${LOG_PATH} install_exit fi if [ ! -f "${CURRENTPATH}${INSTALL_FILE}${SYSCONFIG_PATH}" ] then echo "the ArConfig.dat file is not exist! " | tee -a ${LOG_PATH} install_exit fi echo "verify the ISO succeed !" | tee -a ${LOG_PATH} }backup_ISO(){ echo "begin to copy install file..." | tee -a ${LOG_PATH} if [ -d "${TMP_FILE_PATH}" ] then rm -f -R "${TMP_FILE_PATH}" fi mkdir -p "${TMP_FILE_PATH}" cp -f -R "${CURRENTPATH}${INSTALL_FILE}" "${TMP_FILE_PATH}${INSTALL_FILE}" chmod a+wrx -R "${TMP_FILE_PATH}${INSTALL_FILE}" sleep 1}x_install_mbbservice(){ echo "now begin to install... " | tee -a ${LOG_PATH} #read cmo export DISPLAY=":0" if which xterm; then echo "Run xterm and begin to install" | tee -a ${LOG_PATH} TERMINAL=`which xterm` ${TERMINAL} '-e' "${TMP_FILE_PATH}${INSTALL_FILE}${INSTALL_SHELL}" echo "Exit install and remove temporary files" | tee -a ${LOG_PATH} exit 0 #install_exit fi if which gnome-terminal; then echo "Run gnome-terminal and begin to install" | tee -a ${LOG_PATH} TERMINAL=`which gnome-terminal` ${TERMINAL} '-e' "${TMP_FILE_PATH}${INSTALL_FILE}${INSTALL_SHELL}" echo "Exit install and remove temporary files" | tee -a ${LOG_PATH} exit 0 #install_exit fi if which konsole; then echo "Run konsole and begin to install" | tee -a ${LOG_PATH} TERMINAL=`which konsole` ${TERMINAL} '-e' "${TMP_FILE_PATH}${INSTALL_FILE}${INSTALL_SHELL}" echo "Exit install and remove temporary files" | tee -a ${LOG_PATH} exit 0 #install_exit fi echo "Run shell and begin to install" | tee -a ${LOG_PATH} "${TMP_FILE_PATH}${INSTALL_FILE}${INSTALL_SHELL}" echo "Exit install and remove temporary files" | tee -a ${LOG_PATH} exit 0 #install_exit}check_ISO#check_first_install#if [ "${FIRST_INSTALL}" = "YES" ]#thenbackup_ISOx_install_mbbservice#else#verify_version#fi#read mo
[ 16.252812] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 16.252830] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 18.225129] NET: Registered protocol family 40
[ 20.031863] init: plymouth-upstart-bridge main process ended, respawning
[ 20.038509] init: plymouth-upstart-bridge main process (1714) terminated with status 1
[ 20.038524] init: plymouth-upstart-bridge main process ended, respawning
[ 4094.650152] usb 1-1: new high-speed USB device number 2 using ehci-pci
[ 4094.927137] usb 1-1: New USB device found, idVendor=12d1, idProduct=1f01
[ 4094.927143] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4094.927146] usb 1-1: Product: HUAWEI_MOBILE
[ 4094.927148] usb 1-1: Manufacturer: HUAWEI_MOBILE
[ 4094.927149] usb 1-1: SerialNumber: 0123456789ABCDEF
[ 4095.269047] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 4095.277909] scsi host33: usb-storage 1-1:1.0
[ 4095.278605] usbcore: registered new interface driver usb-storage
[ 4095.317267] usbcore: registered new interface driver uas
[ 4096.288621] scsi 33:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
[ 4096.292284] scsi 33:0:0:1: Direct-Access HUAWEI TF CARD Storage 2.31 PQ: 0 ANSI: 2
[ 4096.311254] sr 33:0:0:0: [sr1] scsi-1 drive
[ 4096.311650] sr 33:0:0:0: Attached scsi CD-ROM sr1
[ 4096.311748] sr 33:0:0:0: Attached scsi generic sg2 type 5
[ 4096.315092] sd 33:0:0:1: Attached scsi generic sg3 type 0
[ 4096.397480] sd 33:0:0:1: [sdb] Attached SCSI removable disk
[ 4096.892424] ISO 9660 Extensions: Microsoft Joliet Level 1
[ 4096.921957] ISOFS: changing to secondary root
[ 4643.467171] usb 1-1: USB disconnect, device number 2
[ 4645.089764] usb 1-1: new high-speed USB device number 3 using ehci-pci
[ 4645.340928] usb 1-1: New USB device found, idVendor=12d1, idProduct=14dc
[ 4645.341029] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 4645.341033] usb 1-1: Product: HUAWEI_MOBILE
[ 4645.341036] usb 1-1: Manufacturer: HUAWEI_MOBILE
[ 4645.508827] usb-storage 1-1:1.2: USB Mass Storage device detected
[ 4645.511443] scsi host34: usb-storage 1-1:1.2
[ 4645.662794] cdc_ether 1-1:1.0 eth1: register 'cdc_ether' at usb-0000:02:03.0-1, CDC Ethernet Device, 0c:5b:8f:27:9a:64
[ 4645.662854] usbcore: registered new interface driver cdc_ether
[ 4645.762730] cdc_ether 1-1:1.0 eth1: kevent 11 may have been dropped
[ 4646.520506] scsi 34:0:0:0: Direct-Access HUAWEI TF CARD Storage 2.31 PQ: 0 ANSI: 2
[ 4646.524169] sd 34:0:0:0: Attached scsi generic sg2 type 0
[ 4646.549359] sd 34:0:0:0: [sdb] Attached SCSI removable disk
[ 4648.018276] cdc_ether 1-1:1.0 eth1: kevent 12 may have been dropped
[ 4648.018283] cdc_ether 1-1:1.0 eth1: kevent 12 may have been dropped
[ 4648.018700] cdc_ether 1-1:1.0 eth1: kevent 12 may have been dropped
then open the ip address http://192.168.81.
we can get hardware infomation as below :
IMEI: 868757028885875
IMSI: 460014217711486
本机号码: 未知
硬件版本号: CL2E3372HM
软件版本号: 22.180.05.00.00
Web UI 版本: 17.100.06.00.03
LAN MAC 地址: 00:0D:87:8E:4B:AC
WAN IP 地址: 10.200.104.175
0 0
- Huawei E3372 for mint17 with usb_modeswith
- huawei
- HUAWEI
- huawei
- huawei-字符串分割,动态sql,instr,substr,循环for...loop
- How To Build CyanogenMod For Huawei Honor 5X ("kiwi")
- Mint17安装NVIDIA驱动
- Mint17双屏分辨率设置
- Mint17安装ReText5.2
- Mint17安装Remarkable编辑器
- HUAWEI工作总结
- huawei muc8650
- Huawei introduction
- huawei机试
- Huawei面试
- huawei学习
- huawei机试
- arm-huawei
- iOS - 一个页面多个tableview
- uvalive 4015 caves
- windows 安装redis
- 学习数据库开发技术
- 数据管理与运算
- Huawei E3372 for mint17 with usb_modeswith
- linux fcntl 函数
- mkdir()和mkdirs()
- 树莓派相关-树莓派串口配置方法
- C语言inline详细讲解
- 自己处理文件内容,并写文件到硬盘
- ToolBar沉浸式状态栏的兼容实现
- while函数输入小结
- "SetDestination" can only be called on an active agent that has been placed on a NavMesh.