#!/bin/sh
###customernum一定在config分区
###读取不到的话,说明分区出问题了
customernum=`paraconf r 2 customernum`
if [ "${customernum}" == "null" ];then
config_mtd="/dev/mtd4"
###刷除config分区
flash_eraseall ${config_mtd}
flashcp /bin/vslocal/config.bin ${config_mtd}
fi