0 Star 0 Fork 0

nov12 / proxmark3-iceman

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
update.sh 971 Bytes
一键复制 编辑 原始数据 按行查看 历史
jbono 提交于 2018-08-16 07:42 . Updated update.sh with OS detection
#!/bin/bash
function wait4proxmark_Linux {
echo >&2 "Waiting for Proxmark to appear..."
while [ ! -c /dev/ttyACM? -a ! -L /dev/pm3-? ]; do
sleep .1
done
local PM3=`ls -1 /dev/pm3-? /dev/ttyACM? 2>/dev/null | head -1`
echo >&2 -e "Found proxmark on ${PM3}\n"
echo $PM3
}
function wait4proxmark_macOS {
echo >&2 "Waiting for Proxmark to appear..."
while true; do
PM3=$(ls /dev/pm3-* /dev/cu.usbmodem* 2>/dev/null | head -1)
if [[ $PM3 != "" ]]; then
#echo >&2 -e "Found proxmark on $(ls /dev/pm3-* /dev/cu.usbmodem* 2>/dev/null | head -1)\n"
break
fi
sleep .1
done
echo $PM3
}
# Detect OS and flash bootroom & system image
if [[ $(uname | awk '{print toupper($0)}') == "LINUX" ]]; then
client/flasher $(wait4proxmark_Linux) -b bootrom/obj/bootrom.elf armsrc/obj/fullimage.elf
elif [[ $(uname | awk '{print toupper($0)}') == "DARWIN" ]]; then
client/flasher $(wait4proxmark_macOS) -b bootrom/obj/bootrom.elf armsrc/obj/fullimage.elf
fi
1
https://gitee.com/nov12/proxmark3-iceman.git
git@gitee.com:nov12/proxmark3-iceman.git
nov12
proxmark3-iceman
proxmark3-iceman
master

搜索帮助