本文来源http://blog.csdn.net/gt945/article/details/9947803
首先修改build.sh,阻止配置文件被重置
第18行
#!/bin/sh export PREFIX2=`pwd`/trafficmeter.git/usr/traffic_meter ln -sf /tmp/ppp/ppp_last_conn_time ${PREFIX2}/last_conn_time ln -sf /tmp/ppp/ppp_last_stop_time ${PREFIX2}/last_stop_time ln -sf /tmp/ppp/ppp0-status ${PREFIX2}/network_status export PREFIX3=`pwd`/net-util.git ln -sf /sbin/net-util ${PREFIX3}/cmdroute ln -sf /sbin/net-util ${PREFIX3}/cmdsched ln -sf /sbin/net-util ${PREFIX3}/ipconflict ln -sf /sbin/cgiMain `pwd`/madwifi-11n.git/sbin/cfg ln -sf /tmp/etc/wpa2 `pwd`/hostap-0.5.x.git/etc/wpa2 export PREFIX=`pwd`/package/trafficmeter/files ln -sf /tmp/ppp/ppp_last_conn_time ${PREFIX}/last_conn_time ln -sf /tmp/ppp/ppp_last_stop_time ${PREFIX}/last_stop_time ln -sf /tmp/ppp/ppp0-status ${PREFIX}/network_status if [ ! -e .config ] then cp configs/defconfig-wnr2200 .config fi #make oldconfig fakeroot make V=99 FORCE=1
Base system ---> Configuration ---> Editors ---> vi
./build.sh