File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,10 @@ LOAD_AVG=$(cat /proc/loadavg | cut -d ' ' -f1-3)
12
12
TOTAL_MEMORY=$( free -k | awk ' NR==2{print $2}' )
13
13
FREE_MEMORY=$( free -k | awk ' NR==2{print $4+$6+$7}' )
14
14
15
- LOCAL_IP=$( ifconfig | awk ' /inet addr/{print substr($2,6)}' )
16
- NETMASK=$( ifconfig | awk ' /inet addr/{print substr($4,6)}' )
15
+ LOCAL_IP=$( ifconfig wlan0 | awk ' /inet addr/{print substr($2,6)}' )
16
+ NETMASK=$( ifconfig wlan0 | awk ' /inet addr/{print substr($4,6)}' )
17
17
GATEWAY=$( route -n | awk ' NR==3{print $2}' )
18
- MAC_ADDR=$( ifconfig | awk ' /HWaddr/{print substr($5,1)}' )
18
+ MAC_ADDR=$( ifconfig wlan0 | awk ' /HWaddr/{print substr($5,1)}' )
19
19
WLAN_ESSID=$( iwconfig wlan0 | grep ESSID | cut -d\" -f2)
20
20
21
21
# Yeah, it's pretty ugly.. but hey, it works.
You can’t perform that action at this time.
0 commit comments