2 PATH=/bin:/usr/bin:/sbin:/usr/sbin
4 #--------------------------------------
6 #--------------------------------------
8 # not allow to use relative path
9 if [[ $0 == "/"* ]]; then
19 SUPP_LOG_SIZE=$(stat -c %s "/opt/usr/data/network/wpa_supplicant.log")
21 if [[ SUPP_LOG_SIZE -lt 200000 ]]; then
22 if [[ -f "/opt/usr/data/network/wpa_supplicant.log.0" ]]; then
23 cp /opt/usr/data/network/wpa_supplicant.log.0 ${SUPP_LOG_FILE}
27 cat /opt/usr/data/network/wpa_supplicant.log >> ${SUPP_LOG_FILE}