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-01-01 22:25:09

uyuni
Member
From: Denmark
Registered: 2007-12-29
Posts: 31

ash not supporting startup scripts!?

I want ash to run a script when I login with telnet.

Apparently, the funplug.d/etc/profile is not executed at login
Neither is /etc/profile nor ~/.profile

But running "strings $0|grep profile" produces the following output:

Code:

readprofile
/mnt/HD_a2/fun_plug.d/etc/profile
.profile
/proc/profile
profile address out of range. Wrong map file?

Thus it seems to me that it *should* run either of the above-mentioned profiles!?

I'm running fun_plug-0.4-test

What am I doing wrong?


D-Link DNS-323 firmware 1.08 + Samsung HD203WI + Samsung HD103UJ + ffp-0.5 + addons

Offline

 

#2 2008-01-01 23:47:41

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

Re: ash not supporting startup scripts!?

fun_plug.d/etc/profile is executed for login shells. The immediate-shell telnet server that's running by default doesn't start a login shell and inherits the environment of the fun_plug script instead.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB