1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00
openmptcprouter-feeds/qaa/qca/net/qca-wifi/files/diag_socket_app
2022-09-10 05:47:47 +08:00

21 lines
473 B
Bash

#!/bin/sh /etc/rc.common
#
# Copyright (c) 2017 Qualcomm Technologies, Inc.
#
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
START=98
start_diag_app()
{
local serverip=`grep -oh "serverip.*#" /proc/cmdline | awk -F '#' '{print $2}'`
/usr/sbin/diag_socket_app -a $serverip &
echo "/usr/sbin/diag_socket_app started" > /dev/kmsg
}
start() {
is_ftm=`grep wifi_ftm_mode /proc/cmdline | wc -l`
[ $is_ftm = 1 ] && start_diag_app
}