Skip to content
This repository has been archived by the owner on Mar 17, 2018. It is now read-only.

Install on Asus stock firmware

Alexander Ryzhov edited this page Dec 14, 2015 · 2 revisions

Introduction

It's related to any modern ASUS router with USB port: RT-N10U, RT-N13U, RT-N15U, RT-N16, RT-N56U, RT-N65U, RT-N66U, RT-AC66U and so on. Asus stock firmware partially based on TomatoUSB code, so we may use a custom start/stop scripts to ignite external services from USB drive.

Prepare USB disk with clean ext2/ext3 partition with some label (MYPART label is used in script below). USB partitions will be mounted by it's label.

Start scripts

Open telnet/ssh console and copy & past following scripts:

cat << EOF > /tmp/script_usbmount.tmp
if [ \$1 = "/tmp/mnt/MYPART" ]
then
ln -sf \$1 /tmp/opt
/opt/etc/init.d/rc.unslung start
fi
EOF
nvram set script_usbmount="`cat /tmp/script_usbmount.tmp`"

cat << EOF > /tmp/script_usbumount.tmp
if [ \$1 = "/tmp/mnt/MYPART" ]
then
/opt/etc/init.d/rc.unslung stop
fi
EOF
nvram set script_usbumount="`cat /tmp/script_usbumount.tmp`"

nvram commit 
reboot

Deploying Entware-ng

After reboot, Open telnet/ssh console and type following command.

  • On ARM devices (RT-AC68U, RT-AC56U, RT-AC87U, RT-AC3200, RT-AC88U, RT-AC3100, RT-AC5300, e.t.c):
wget -O - http://pkg.entware.net/binaries/armv7/installer/entware_install.sh | sh
  • On MIPS devices (RT-N66U, RT-AC66U, RT-N16, e.t.c):
wget -O - http://pkg.entware.net/binaries/mipsel/installer/installer.sh | sh