ColinTaylor
Part of the Furniture
I had assumed that Entware was a requirement because that's what you stated in post #1. To be honest I only glanced at your code, saw a few mentions of /opt and didn't look into it any further. Given that you already have the code in place to modify profile.add I'd be inclined to just use that and remove the code that links to /opt/bin. Keeps it consistent and simplifies things, but that's just my personal preference. Of course, there's the gotcha that after installation the user has to either log out and back in to the SSH session to pick up the alias, or use the full path name of the script.@ColinTaylor I realize your question was just academic, but I believe the code is not dependent on Entware and a USB.
Unless I'm overlooking something in my code, the only portion of code that may be related is where I'm adding an alias for modsyslogui ==> that section checks if the /opt/bin directory exists (which I believe only exists if entware is installed which requires a USB) and if not, it then adds the alias to profile.add instead. The intent was to be able to add an alias whether entware was or wasn't installed.
Was there a dependency somewhere else in the code I'm overlooking?
Last edited: