一步一步修改WNR2200固件(三) Busybox增加vi编辑器

本文来源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

执行make menuconfig 并勾选vi

Base system  --->
  Configuration  --->  
    Editors  ---> 
      vi

执行编译即可

./build.sh



你可能感兴趣的:(WNR2200)