3 # Copyright (C) 2010 OpenWrt.org
6 ramips_get_mac_binary
()
14 part
=$
(find_mtd_part
"$mtdname")
15 if [ -z "$part" ]; then
16 echo "ramips_get_mac_binary: partition $mtdname not found!" >&2
20 dd bs
=1 skip
=$seek count
=6 if=$part 2>/dev
/null |
/usr
/sbin
/maccalc bin2mac
23 ramips_get_mac_nvram
()
32 part
=$
(find_mtd_part
"$mtdname")
33 if [ -z "$part" ]; then
34 echo "ramips_get_mac_nvram: partition $mtdname not found!" >&2
38 mac_dirty
=$
(strings "$part" |
sed -n 's/'"$key"'=//p')
40 /usr
/sbin
/maccalc add
"$mac_dirty" 0
47 machine
=$
(awk 'BEGIN{FS="[ \t]+:[ \t]"} /machine/ {print $2}' /proc
/cpuinfo
)
80 *"MoFi Network MOFI3500-3GN")
92 *"Omnima MiniEMBWiFi")
107 *"Sparklan WCR-150GN")
119 *"Sitecom WL-341 v3")
122 *"Sitecom WL-351 v1 002")
129 name
="wli-tx4-ag300n"
134 *"WR512-3GN-like router")
This page took 0.062345 seconds and 5 git commands to generate.