2013年8月20日星期二

修改DD-WRT固件,添加删除功能

Optional steps for users with "Mega" (like me)

The steps below are only applicable if you used the Mega version as your base.
While we have used the "mini" version up until now, some of you may be in possession of a "Mega" capable router (like me).

Personally I found that while Mega has some really nice packages integrated into it out of the box, some are completely useless for my setup, and just take up precious potential JFFS space.

The packages include:

Warning: we will delete everything to do with these packages other then the web pages. this is because, for various reasons, DD-WRT pre-compiles the ASP pages directly into the apache binary, making it impossible to remove them with the mod-kit alone. (yes this was deliberate :\ ).
Therefore it is up to you to remember not to use the web-GUI options, for the packages above.
If your uncertain that you can do this, you may opt to use the "standard" version as your base instead of Mega, or simply skip this procedure.

To delete the packages (despite leaving the web-GUI configurations in place) issue the following commands:
rm ./working_dir*/rootfs/usr/sbin/sputnik  rm ./working_dir*/rootfs/usr/sbin/splashd  rm ./working_dir*/rootfs/usr/sbin/pound  rm ./working_dir*/rootfs/usr/sbin/kaid  rm ./working_dir*/rootfs/usr/sbin/chilli     for i in $( find ./ -name *milkfish* ); do ll $i ;rm -rfv $i ; done  for i in $( find ./ -name *asterisk* ); do ll $i ;rm -rfv $i ; done  for i in $( find ./ -name *openser* ); do ll $i ;rm -rfv $i ; done

原文地址:

http://hotfortech.wikispaces.com/DD-WRT+mod-kit+home+setup