What is the output of "echo $PATH" ?
Bash:
/opt/bin:/opt/sbin:/bin:/usr/bin:/sbin:/usr/sbin:/home/Admin:/mmc/sbin:/mmc/bin:/mmc/usr/sbin:/mmc/usr/bin:/opt/sbin:/opt/bin:/opt/usr/sbin:/opt/usr/bin
What is the output of "cat /etc/profile" ?
Bash:
export PATH="/bin:/usr/bin:/sbin:/usr/sbin:/home/$USER:/mmc/sbin:/mmc/bin:/mmc/usr/sbin:/mmc/usr/bin:/opt/sbin:/opt/bin:/opt/usr/sbin:/opt/usr/bin"
export PS1='\u@\h:\w\$ '
export LD_LIBRARY_PATH=/lib:/usr/lib:/lib/aarch64
alias l='ls -lFA'
alias ll='ls -lF'
ldd() {
LD_TRACE_LOADED_OBJECTS=1 $*;
}
[ -n "${TMOUT+x}" ] || export TMOUT="$(nvram get shell_timeout 2>/dev/null)"
enable=`nvram get enable_core_dump`
if [ ! -z $enable ]; then
mount ubi:rootfs_ubifs / -t ubifs -o remount,rw
ulimit -c unlimited
echo 1 > /proc/sys/kernel/core_uses_pid
echo "/tmp/core-%e-%g-%p-%s-%t-%u" > /proc/sys/kernel/core_pattern
echo 2 > /proc/sys/fs/suid_dumpable
fi
[ -f /jffs/etc/profile ] && . /jffs/etc/profile
[ -f /opt/etc/profile ] && . /opt/etc/profile
Does running the following command makes you able to use just opkg command afterwards ?
Code:export PATH=/opt/bin:/opt/sbin:$PATH
Running export path didn't help