MTK android modem编译完后,拷贝脚本


#!/bin/sh


if [ -z "$1" ];then
    echo "!!!input 2G or 3G!!!!"
    exit 0
fi

if [ "$1" == "2G" ];then
modem_path=../$1_modem
rm -rf $modem_path
mkdir $modem_path
ext_2g="1_2g_n"


cp -fv ./build/*_JB5_GPRS/DEFAULT/bin/*.bin  $modem_path/modem_$ext_2g.img
cp -fv ./build/*_JB5_GPRS/DEFAULT/bin/[a-Z]*_JB5_*.mak  $modem_path/modem_$ext_2g.mak
cp -fv ./build/*_JB5_GPRS/DEFAULT/bin/*_JB5_*.elf   $modem_path/


cp -fv ./build/*_JB5_GPRS/DEFAULT/tst/database/catcher_filter.bin $modem_path/catcher_filter_$ext_2g.bin
cp -fv ./build/*_JB5_GPRS/DEFAULT/tst/database/DbgInfo_WR8*  $modem_path/
cp -fv ./build/*_JB5_GPRS/DEFAULT/tst/database/BPLGUInfoCustomAppSrcP*[0-9]   $modem_path/

ls $modem_path/*.elf|while read fn;do mv -fv $fn ${fn%.*}_$ext_2g.elf ;done
ls $modem_path/BPLGUInfoCustomAppSrcP*|while read fn;do mv -fv $fn ${fn}_$ext_2g ;done
ls $modem_path/DbgInfo_WR8*|while read fn;do mv -fv $fn ${fn}_$ext_2g ;done
exit 0
fi



if [ "$1" == "3G" ];then
modem_path=../$1_modem
rm -rf $modem_path
mkdir $modem_path
ext_3g="1_wg_n"


cp -fv ./build/*_JB5_HSPA/DEFAULT/bin/*.bin  $modem_path/modem_$ext_3g.img
cp -fv ./build/*_JB5_HSPA/DEFAULT/bin/[a-Z]*_JB5_*.mak  $modem_path/modem_$ext_3g.mak
cp -fv ./build/*_JB5_HSPA/DEFAULT/bin/*_JB5_*.elf   $modem_path/


cp -fv ./build/*_JB5_HSPA/DEFAULT/tst/database/catcher_filter.bin $modem_path/catcher_filter_$ext_3g.bin
cp -fv ./build/*_JB5_HSPA/DEFAULT/tst/database/DbgInfo_WR8*  $modem_path/
cp -fv ./build/*_JB5_HSPA/DEFAULT/tst/database/BPLGUInfoCustomAppSrcP*[0-9]   $modem_path/

ls $modem_path/*.elf|while read fn;do mv -fv $fn ${fn%.*}_$ext_3g.elf ;done
ls $modem_path/BPLGUInfoCustomAppSrcP*|while read fn;do mv -fv $fn ${fn}_$ext_3g ;done
ls $modem_path/DbgInfo_WR8*|while read fn;do mv -fv $fn ${fn}_$ext_3g ;done


exit 0
fi


echo "!!!!!!!!!!!!!!bad  arg,input 2G or 3G!!!!!!!!!!!!!!!!!"













  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值