Linksys EA6900刷Merlin固件安装Entware到Jffs分区

in Like with 0 comment

梅林WEB管理界面中打开

Format JFFS partition at next boot
Enable JFFS custom scripts and configs

重启路由, SSH登录路由器后输入下面代码:

mkdir /jffs/entware
ln -nsf /jffs/entware /tmp/opt
wget -O - http://bin.entware.net/armv7sf-k2.6/installer/alternative.sh | /bin/sh
echo "#!/bin/sh" > /jffs/scripts/services-start
echo "sleep 20" >> /jffs/scripts/services-start
echo "ln -ns /jffs/entware /tmp/opt" >> /jffs/scripts/services-start
echo "/opt/etc/init.d/rc.unslung start" >> /jffs/scripts/services-start
echo "#!/bin/sh" > /jffs/scripts/services-stop
echo "/opt/etc/init.d/rc.unslung stop" >> /jffs/scripts/services-stop
chmod a+rx /jffs/scripts/*
Comments are closed.