Хи-хи
Решил тут побаловаться телнетом на 300Т модеме.
ls... смотрю - какая-то файловая структура знакомая.
# cat versions
CUSTOMER=DLinkRU
MODEL=DSL-300T_ZIPB
VERSION=V1.00B02T02.RU.20040714
HTML_LANG=EN
BOARD=AR7WRD
VERSION_ID=RU
CPUARCH_NAME=AR7
MODEL_ID=300
FSSTAMP=20040714111140
# cd /proc
# cat version
Linux version 2.4.17_mvl21-malta-mips_fp_le (
Jenny@products.adsl) (gcc version 2.95.3 20010315 (release/MontaVista)) #62 Wed Jul 14 09:39:48 CST 2004
Ба! Да то же Линукс! Прикольно
Так что все похоже и знакомо:
# cat meminfo
total: used: free: shared: buffers: cached:
Mem: 6709248 6316032 393216 0 581632 1937408
Swap: 0 0 0
MemTotal: 6552 kB
MemFree: 384 kB
MemShared: 0 kB
Buffers: 568 kB
Cached: 1892 kB
SwapCached: 0 kB
Active: 2792 kB
Inactive: 996 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 6552 kB
LowFree: 384 kB
SwapTotal: 0 kB
SwapFree: 0 kB
# cat cpuinfo
processor : 0
cpu model : MIPS 4KEc V4.8
BogoMIPS : 149.91
wait instruction : no
microsecond timers : yes
extra interrupt vector : yes
hardware watchpoint : yes
VCED exceptions : not available
VCEI exceptions : not available
# cd sbin
Try `iptables -h' or 'iptables --help' for more information.
# iptables -L -v -n
Chain INPUT (policy ACCEPT 9941 packets, 1322K bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 5206 packets, 2364K bytes)
pkts bytes target prot opt in out source destination
Ба! Да тут iptables реализован!!!
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.16.0.0 * 255.255.255.0 U 0 0 0 br0
239.0.0.0 * 255.0.0.0 U 0 0 0 br0
Ну и таблицу маршрутизации показывает
Ну и напоследок:
# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/mtdblock/0 1248 1248 0 100% /
Забавно! Очень даже забавно
