
function get_ipq40xx_device_mac ()
{
	mac=`hexdump -x -n 6 /dev/mtd7 | head -n 1  | \
		awk '{printf("%s:%s:%s:%s:%s:%s\n", substr($2,3,2), \
		substr($2,1,2), substr($3,3,2), substr($3,1,2), \
		substr($4,3,2), substr($4,1,2));}'`
	echo $mac
}

function get_b1300_serial_num ()
{
	suff=`dd if=/dev/mtd7 bs=1 skip=$((0x30)) count=16 2>/dev/null`