Okay here it is:
#Please note it's not a system-wide settings, it's only for a cu
# terminal session. Point your f\w (if necessery) to execute /opt
# at console logon.
case "$2" in
*$1*) return 0;;
*) return 1;;
# Set CHECK_OPT_PATH to 1 to check /opt/bin and /opt/sbin in PATH
if [ $CHECK_OPT_PATH = 1 ]; then
is_substring "/opt/bin" $PATH
[ $? == 1 ] && export PATH=/opt/bin:$PATH
is_substring "/opt/sbin" $PATH
[ $? == 1 ] && export PATH=/opt/sbin:$PATH
alias mc="mc -c"
# You may define localization
Assuming i need to change the /opt/bin:$PATH to $PATH:/opt/bin
EDIT: I renamed the file profile to profile.bak and opened a session again. And looks like everything was back to normal, except opkg bits.
I think this needs to be put in the entware upon install, that it references existing libraries first rather than replacing with its own.
Out of my depth here. I am not sure how to have both entware and not break ssh sessions. cant use curl either. Curl says version not available and then points to service.plexmediaserver as the error. No issues when the profile doesn’t exist.