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 2007-10-06 14:04:59

lovgren
Member
Registered: 2007-05-05
Posts: 11

How to set environment variables?

Hi, I'm trying to set the environment variable PATH to point to my USB flash drive. How do I do that? I am able to set it with PATH=<path>, but when I open a new shell the old value is still there...

Offline

 

#2 2007-10-06 17:12:50

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: How to set environment variables?

there're two places. if you're telnetting without password, change either telnetd.sh or fun_plug. if you're using telnet with login or ssh, change fun_plug.d/etc/profile:

Code:

export PATH=$PATH:whateveryouwanttoadd

Offline

 

#3 2007-10-06 18:12:18

lovgren
Member
Registered: 2007-05-05
Posts: 11

Re: How to set environment variables?

OK, thanks I wasn't aware of that. Now it works much better.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB