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-03-23 08:46:41

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

Connecting with putty loses environment variables :(

I've just got ssh connection going using putty and dropbear to connect as root.

During my boot process fun_plug sets the environment variables "TRANSMISSION_HOME=/mnt/HD_a2/.transmission" (I know this is working OK as I output env to a test file to make sure).

I notice that after connecting via putty that this variable is no longer set and as a result transmission-remote will not run until I export the variable again.

Does anyone know what happens when the ssh connection is made and how I can stop this variable being lost?

Cheers

RAP

Offline

 

#2 2008-03-23 11:27:22

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

Re: Connecting with putty loses environment variables :(

The password-less telnet inherits all the environment variables from the fun_plug script. But login-sessions, like ssh connections will create a new environment for each sessions. It's composed of a standard environment plus stuff set in /.../fun_plug.d/etc/profile plus $HOME/.profile.

Offline

 

#3 2008-03-23 13:38:00

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

Re: Connecting with putty loses environment variables :(

This is a real rarity - a forum that actually helps people !!!!!!

/.../fun_plug.d/etc/profile sorted it out for me smile

Cheers

RAP

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB