iwlist aiwlist ath0 channel | grep 'Frequency' | awk '{ print $5 }' | awk -F')' '{print $1}'th0 channel | grep 'Frequency' | awk '{ print $5 }' | awk -F')' '{print $1}'
cat /proc/uptime | awk -F' ' '{print $1}' | awk -F. '{print $2}
numerator=`cat /proc/uptime | awk -F' ' '{print $1}' | awk -F. '{print $2}'`
val=$(echo $numerator | cut -b 1)
if [ "$val" = "0" ]; then
numerator=7
fi
channel=$(($numerator%7 + 1))
阅读(1038) | 评论(0) | 转发(0) |