DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-04-04 18:52:54

ojve
Member
Registered: 2008-03-02
Posts: 28

Simple shell scripting issue (I think...)

Hi!

This is not a huge issue, but it's getting a little annoying.

I have installed ipkg and I want /opt/bin and /opt/sbin in my PATH. In the fun_plug script I do "export PATH=/opt/bin:/opt/sbin:${PATH}".

This works for telnet, but the environment when logging in by ssh (which is what I use when not at home) is unaffected. Does anybody know why this is?

Thx.
//T

Last edited by ojve (2008-04-04 18:53:12)

Offline

 

#2 2008-04-04 19:11:45

HaydnH
Member
Registered: 2007-09-28
Posts: 187

Re: Simple shell scripting issue (I think...)

Add the PATH=... line to "/etc/profile" - that file won't exist as standard btw so you may need to create it at boot using fun_plug (either by echo "..." > /etc/profile or by creating the file and using ln -s). You don't need to reboot once that file is created, just start a new ssh session.

Offline

 

#3 2008-04-04 19:12:09

rap
Member
From: Reading - UK
Registered: 2008-02-28
Posts: 119

Re: Simple shell scripting issue (I think...)

Check out this link for the answer:

http://dns323.kood.org/forum/t1911-Conn … ables.html

RAP

Offline

 

#4 2008-04-04 19:13:01

bzhou
Member
Registered: 2008-02-15
Posts: 171

Re: Simple shell scripting issue (I think...)

If you use optware bash, it will install a /opt/etc/profile with /opt/sbin:/opt/bin setup in the PATH.

Offline

 

#5 2008-04-04 20:37:51

ojve
Member
Registered: 2008-03-02
Posts: 28

Re: Simple shell scripting issue (I think...)

Thank you!

I did s search on google, but didn't think about doing it here, sorry.

//T

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB