<br><br><div><span class="gmail_quote">2007/8/26, Cristian Ionescu-Idbohrn <<a href="mailto:firstname.lastname@example.org">email@example.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Sun, 26 Aug 2007, Matt Johnston wrote:<br><br>> Not in Dropbear itself. You might be able to edit a dotfile<br>> for your shell to set environment variables? (I know .zshenv<br>> works for zsh, though not sure about BusyBox shells)
<br><br>/etc/profile?<br><br><br>Cheers,<br><br>--<br>Cristian<br><br><br></blockquote></div>Thanks for the answers.<br><br>I already use the /etc/profile to set the PATH, but I think, /etc/profile is only used on login, isn't it?
<br><br>The busybox uses ash, but an .ash* file does not exist.<br>If I create the .ashrc and export ENV=/var/tmp/.ashrc it works, but to export ENV, I again need the /etc/profile.<br>This works, but only with ssh, not with scp, due to the missing login.
<br><br>I found this sentence at <a href="http://www.busybox.net/lists/busybox/2005-February/013688.html">http://www.busybox.net/lists/busybox/2005-February/013688.html</a><br><br><span>"Environment variables set in a shell script will not have any effect to any parent process."
<br></span><br>I think this is my problem, because the $PATH in an ssh session seems to be a different one than the $PATH I get executing echo $PATH without logging in.<br><br>ssh <a href="mailto:firstname.lastname@example.org">email@example.com
</a> 'echo $PATH' : /usr/local/bin:/usr/bin:/sbin:/bin<br><br>echo $PATH inside the session : /sbin:/bin:/usr/sbin:/usr/bin:/var/tmp<br><br>In the link it is said that changing the boot-arguments would help, but this is not practicable since I only change scripts after the machine has booted.
<br><br>I thought it would be easily possible to change a line in the code to add the correct path to scp on the router.<br>If so, could you tell me the file where I have to search?<br><br>Christoph<br>