mkdir -p /etc/config
(
- if [ "$(/usr/bin/head -c4 /dev/mtdblock/1 | /usr/bin/tail -c3)" = "ELF" ]; then
+ if grep 'mtd0: 00060000' /proc/mtd 2>&- >&-; then
# WGT634u
echo boardtype=wgt634u
else
alias debug=${DEBUG:-:}
# WGT634u
-[ "$(/usr/bin/head -c4 /dev/mtdblock/1 | /usr/bin/tail -c3)" = "ELF" ] && exit
+grep 'mtd0: 00060000' /proc/mtd 2>&- >&- && exit
remap () {
for type in lan wifi wan pppoe
mkdir -p /etc/config
(
- if [ "$(/usr/bin/head -c4 /dev/mtdblock/1 | /usr/bin/tail -c3)" = "ELF" ]; then
+ if grep 'mtd0: 00060000' /proc/mtd 2>&- >&-; then
# WGT634u
echo boardtype=wgt634u
else