=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2014.02.10 22:36:09 =~=~=~=~=~=~=~=~=~=~=~=
login as: root
root@192.168.1.2's password:
BusyBox v1.19.4 (2014-01-25 21:23:07 CET) built-in shell (ash)
|
| LAN: 192.168.1.2 |
----------------------------------------------------------------
[01;32mroot@Gargoyle:~#[00m sh -x /sbin/sysinfo.sh
+ MACH=
+ [ -e /tmp/sysinfo/model ]
+ cat /tmp/sysinfo/model
+ MACH=TP-Link TL-MR3420 v1
+ [ -z TP-Link TL-MR3420 v1 ]
+ [ -z TP-Link TL-MR3420 v1 ]
+ [ -z TP-Link TL-MR3420 v1 ]
+ cut -d. -f1 /proc/uptime
+ U=5618
+ expr 5618 / 60 / 60 / 24
+ D=0
+ expr 5618 / 60 / 60 % 24
+ H=1
+ expr 5618 / 60 % 60
+ M=33
+ expr 5618 % 60
+ S=38
+ printf %dd, %02d:%02d:%02d 0 1 33 38
+ U=0d, 01:33:38
+ awk { print $1" "$2" "$3} /proc/loadavg
+ L=0.01 0.03 0.05
+ awk /overlay/ {printf "%s:%s:%s", $4*1024, $2*1024, $5}
+ df /overlay
+ RFS=1.44977e+10:1.56492e+10:2%
+ cut -f1 -d:
+ echo 1.44977e+10:1.56492e+10:2%
+ a1=1.44977e+10
+ echo 1.44977e+10:1.56492e+10:2%
+ cut -f2 -d:
+ a2=1.56492e+10
+ cut -f3 -d:
+ echo 1.44977e+10:1.56492e+10:2%
+ a3=2%
+ hr 1.56492e+10
+ [ 1.56492e+10 -gt 0 ]
sh: 1.56492e+10: bad number
+ printf 0B
+ hr 1.44977e+10
+ [ 1.44977e+10 -gt 0 ]
sh: 1.44977e+10: bad number
+ printf 0B
+ RFS=total: 0B, free: 0B, used: 2%
+ awk /^MemTotal:/ {print $2*1024} /proc/meminfo
+ total_mem=29929472
+ awk /^Buffers:/ {print $2*1024} /proc/meminfo
+ buffers_mem=2932736
+ awk /^Cached:/ {print $2*1024} /proc/meminfo
+ cached_mem=9457664
+ awk /^MemFree:/ {print $2*1024} /proc/meminfo
+ free_mem=2678784
+ free_mem=15069184
+ hr 29929472
+ [ 29929472 -gt 0 ]
+ awk -v n=29929472 BEGIN{for(i=split("B KB MB GB TB PB",suffix);s<1;i--)s=n/(2**(10*i));printf (int(s)==s)?"%.0f%s":"%.1f%s",s,suffix[i+2]}
+ printf 28.5MB
+ hr 15069184
+ [ 15069184 -gt 0 ]
+ awk -v n=15069184 BEGIN{for(i=split("B KB MB GB TB PB",suffix);s<1;i--)s=n/(2**(10*i));printf (int(s)==s)?"%.0f%s":"%.1f%s",s,suffix[i+2]}
+ printf 14.4MB
+ echo total: 28.5MB, free: 14.4MB, used: 49%
+ MEM=total: 28.5MB, free: 14.4MB, used: 49%
+ uci -q get network.lan.ipaddr
+ LAN=192.168.1.2
+ uci -q -P /var/state get network.wan.ipaddr
+ WAN=80.54.70.177
+ [ -z 80.54.70.177 ]
+ [ -n 80.54.70.177 ]
+ uci -q get network.wan.proto
+ WAN=80.54.70.177, proto: static
+ printf | %-60s |\n Machine: TP-Link TL-MR3420 v1
| Machine: TP-Link TL-MR3420 v1 |
+ printf | %-60s |\n Uptime: 0d, 01:33:38
| Uptime: 0d, 01:33:38 |
+ printf | %-60s |\n Load: 0.01 0.03 0.05
| Load: 0.01 0.03 0.05 |
+ printf | %-60s |\n Flash: total: 0B, free: 0B, used: 2%
| Flash: total: 0B, free: 0B, used: 2% |
+ printf | %-60s |\n Memory: total: 28.5MB, free: 14.4MB, used: 49%
| Memory: total: 28.5MB, free: 14.4MB, used: 49% |
+ printf | %-60s |\n WAN: 80.54.70.177, proto: static
| WAN: 80.54.70.177, proto: static |
+ printf | %-60s |\n LAN: 192.168.1.2
| LAN: 192.168.1.2 |
+ uci -q get wireless.radio0.disabled
+ OFF=
+ [ x != x1 ]
+ cut -f2 -d.
+ grep device=radio
+ uci -q show wireless
+ IFACES=
+ echo ----------------------------------------------------------------
----------------------------------------------------------------
+ exit 0
[01;32mroot@Gargoyle:~#[00m