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-10-12 13:27:45

zeroday
Member
Registered: 2007-07-01
Posts: 136
Website

ipkg & PATH

I do not get it ..

I install ipkg and I read in the wiki to modify PATH in /ffp/etc/profile

but whatever I try I never see the
/opt/bin:/opt/sbin added to the PATH statement after reboot when entering set in the console
it keeps the standard path for FFP and no new additional reference to the /opt path needed

I can edit
# Set the default system $PATH:
PATH=/ffp/bin:/usr/bin:/bin
if [ $(/ffp/bin/id -u) -eq 0 ]; then
PATH=/ffp/sbin:/usr/sbin:/sbin:$PATH
fi
export PATH
--
from /ffp/etc/profile I can edit it like

PATH=/ffp/bin:/usr/bin:/bin:/opt/bin:/opt/sbin

but after reboot of the device, the normal path's are there. So somewhere I must making a mistake

Adding an additional like like

PATH=/opt/bin:/opt/sbin:$PATH does not work as well .. so I do not get it ..

Anyone?

Offline

 

#2 2009-02-07 12:01:35

mastervol
Member
Registered: 2008-09-06
Posts: 81

Re: ipkg & PATH

i have the same issue .. still reading up on this whole path thing ..

i have the following in /ffp/etc/profile:

Code:

# Set the default system $PATH:
PATH=/ffp/bin:/usr/bin:/bin:/opt/bin:/opt/sbin
if [ $(/ffp/bin/id -u) -eq 0 ]; then
        PATH=/ffp/sbin:/usr/sbin:/sbin:/opt/bin:/opt/sbin:$PATH
fi
export PATH

it still isn't set if i login via telnet ..

/mnt/HD_a2/ffp/etc # echo $PATH
/ffp/sbin:/ffp/bin:/usr/sbin:/sbin:/usr/bin:/bin
/mnt/HD_a2/ffp/etc #

Last edited by mastervol (2009-02-07 12:05:23)


DNS-323     F/W: 1.06  H/W: ??  ffp: 0.5  Drives (normal mode): 1 x 1,5 TB Seagate SATA II ST31500341AS, 1 x 250 GB Western Digital SATA I

Offline

 

#3 2009-02-07 12:15:53

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

Re: ipkg & PATH

Have you enabled login for telnet? http://dns323.kood.org/howto:ffp#the_root_user

Offline

 

#4 2009-02-10 02:27:39

lambretta
Member
Registered: 2009-01-07
Posts: 27

Re: ipkg & PATH

The path command you pass will not survive a re-boot. 

In my box I added the following line to my /ffp/etc/profile ....

Code:

PATH=/opt/bin:/opt/sbin:$PATH

I did this some time ago and now, looking at it again, I'm not sure this is 100% correct but it seems to work fine (rtorrent runs well at least) na dit survives a re-boot.

Perhaps I should add these paths to the existing PATH string starting at line 16.  If someone can chime in and confirm if my hack is OK or not please do so.

Last edited by lambretta (2009-02-10 03:02:00)

Offline

 

#5 2009-02-10 11:19:23

RunaR
Member
Registered: 2008-08-14
Posts: 49

Re: ipkg & PATH

I've added these lines in my /ffp/etc/fun_plug.local

Code:

# make optware bind
mkdir -p /opt
mount --bind /mnt/USB/ipkg/opt /opt
export PATH=/opt/bin:/opt/sbin:$PATH

It seams to work and survive a reboot.

I did use the /ffp/etc/profile hack to change to the PATH for a non root user. This also seams to survive a reboot.

Last edited by RunaR (2009-02-10 11:23:25)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB