Dear all,
I am changing external usb storage. Consequently I have to change /opt path. What is the easiest way to achieve that?
I moved content of the old location to the new location.
The old location is not accessible anymore. If I cd /opt, I get:
Bash:
admin@RT-AX88U-CD00:/jffs/scripts# cd /opt
-sh: cd: can't cd to /opt
If you use amtm or Diversion to setup Entware then the scenario is simple and works 100% of the time - unless someone tinkers with things or changes the file content that my scripts use.
amtm and Diversion start Entware services with /jffs/scripts/addons/diversion/mount-entware.div
If Diversion is installed, the file has additional content but the logic is the same:
While the routers is mounting an attached storage device, mount-entware.div will first look for
/entware/bin/opkg.
amtm and Diversion create and install Entware into a folder named
entware on the selected device, this is the default.
However, older scripts created a variation of that folder name like
entware-ng - including my scripts a long time ago.
So, if there is no
entware folder, mount-entware.div then looks for
/entware*/bin/opkg and would rename it to
entware if its a variation of entware*.
All actions when mount-entware.div is triggered are logged to the routers Syslog:
When Diversion is installed:
Code:
Diversion: Starting Entware and Diversion services on <device>
Without Diversion:
Code:
Entware: Starting Entware services on <device>
It also states if there are two instances of Entware found on separate devices.
So in essence, check your Syslog after a reboot to find out why your new device is not starting Entware on your router.