Jump to content

Shell Confused

King Crimson

Recommended Posts

I am confused on how shells are used on the mkv. I am trying to add /root in my path for scripts I want to run. Couldn't find much information on ash on the internet except basically people asking the same thing as I with no answers. Kos was nice enough to let me know bash is on the pineapple and the profile is in /etc/profile. I added the /root to the path in the profile, but when I shell to bash it doesn't see it.


root@Pineapple:/etc# cat profile
[ -f /etc/banner ] && cat /etc/banner

export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/root
export HOME=$(grep -e "^${USER:-root}:" /etc/passwd | cut -d ":" -f 6)
export HOME=${HOME:-/root}
export PS1='\u@\h:\w\$ '

[ -x /bin/more ] || alias more=less
[ -x /usr/bin/vim ] && alias vi=vim || alias vim=vi

[ -z "$KSH_VERSION" -o \! -s /etc/mkshrc ] || . /etc/mkshrc

[ -x /usr/bin/arp ] || arp() { cat /proc/net/arp; }
[ -x /usr/bin/ldd ] || ldd() { LD_TRACE_LOADED_OBJECTS=1 $*; }
export LD_LIBRARY_PATH=/lib:/usr/lib:/sd/lib:/sd/usr/lib
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/sd/usr/bin:/sd/usr/sbin
alias opkg='/usr/bin/opkg-fixed'


root@Pineapple:~# pwd
root@Pineapple:~# ls


root@Pineapple:/# ipforwardon.sh
bash: ipforwardon.sh: command not found

Any help will be greatly appreciated.


Addendum: Resolved.... Thanx all. <_<

Edited by King Crimson
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...