linkpi_firmware_history/rootfs/link/shell/trans.sh

20 lines
532 B
Bash
Raw Normal View History

2024-02-15 22:07:30 +01:00
cfg=/link/config/trans.json
enable=`cat $cfg | grep -o '"enable":[^(,|})]*' | awk -F: '{print $2}'| sed 's/ //g' `
if [ "$enable" == "true" ]; then
args=`cat $cfg`
/link/bin/trans "wx.linkpi.cn:5555" "$args" &
fi
#ngrok_enable=$(cat /link/config/rproxy/ngrok_enable |awk '{printf "%s",$1}')
frp_enable=$(cat /link/config/rproxy/frp_enable |awk '{printf "%s",$1}')
#if [ "$ngrok_enable" == "true" ]; then
#/link/bin/ngrok -config /link/config/rproxy/ngrok.cfg &
#fi
if [ "$frp_enable" == "true" ]; then
/link/shell/frp.sh &
fi