King Crimson Posted November 14, 2013 Share Posted November 14, 2013 (edited) 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#!/bin/sh[ -f /etc/banner ] && cat /etc/bannerexport PATH=/bin:/sbin:/usr/bin:/usr/sbin:/rootexport 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/libexport PATH=/bin:/sbin:/usr/bin:/usr/sbin:/sd/usr/bin:/sd/usr/sbinalias opkg='/usr/bin/opkg-fixed' --------------------------------------------------------------------------------------------------------------------------------- root@Pineapple:~# pwd/rootroot@Pineapple:~# lsipforwardon.sh ---------------------------------------------------------------------------------------------------------------------------------- root@Pineapple:/# ipforwardon.shbash: ipforwardon.sh: command not foundroot@Pineapple:/# Any help will be greatly appreciated. KC Addendum: Resolved.... Thanx all. <_< Edited November 15, 2013 by King Crimson Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.