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 2009-02-22 13:29:21

alpha
Member
From: Lithuania
Registered: 2008-10-06
Posts: 88

Two methods ffp on USB. What is the difference

Hello,

Recently I've searched the forum and found that people use two different ways to run ffp from USB. One method is to use /mnt/HD_a2/.bootstrap/setup.sh and the others use just modified fun_plug script. So what is the difference and which method is better. My idea is to run ffp from USB and unmount HDDs. The I want the ability to add new packages to USB if I want. If I boot DNS323 with USB stick I need ffp run from USB with its packages and if I boot DNS323 without USB then I need ffp run from HDD with its own packages. Is it possible and what method is better to use ? Somehow I think simplier is to use modified fun_plug script. Isn't it ?

Regards,
alpha

Offline

 

#2 2009-02-22 14:24:26

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

Re: Two methods ffp on USB. What is the difference

During early 0.5 development, there have been occassional changes in the fun_plug script (to fix installer problems, make customizations easier, etc). If you use a modified fun_plug script, you risk incompatibilies. The only purpose of setup.sh is to allow you to put custom preparations in a separate place, nothing more.

Offline

 

#3 2009-02-22 17:04:25

alpha
Member
From: Lithuania
Registered: 2008-10-06
Posts: 88

Re: Two methods ffp on USB. What is the difference

Thank you fronz for fast reply. So as I understand correctly written modified fun_plug will be ok. I think I get it. For me its simplier to modify fun_plu, but I think I'll try both. Just for fun smile Thanks again.

Regards,
alpha

Offline

 

#4 2009-02-23 22:18:00

alpha
Member
From: Lithuania
Registered: 2008-10-06
Posts: 88

Re: Two methods ffp on USB. What is the difference

Hi,

One more question..... Is setup.sh script run after fun_plug script completely finished or in some different time ? I know I have this line in fun_plug script:

Code:

# setup script (used for ffp on USB disk)
FFP_SETUP_SCRIPT=/mnt/HD_a2/.bootstrap/setup.sh

So is setup.sh executed after this line or after fun_plug script is finished ?

Regards,
alpha

Offline

 

#5 2009-02-23 23:30:21

alpha
Member
From: Lithuania
Registered: 2008-10-06
Posts: 88

Re: Two methods ffp on USB. What is the difference

I'm sorry, ti was really dumb question. I just not looked at this line:

Code:

if [ -x $FFP_SETUP_SCRIPT ]; then
    echo "* Running $FFP_SETUP_SCRIPT ..."
    . $FFP_SETUP_SCRIPT
fi

my bad....

Regards,
alpha

Offline

 

#6 2009-02-25 23:46:53

alpha
Member
From: Lithuania
Registered: 2008-10-06
Posts: 88

Re: Two methods ffp on USB. What is the difference

Hello,

I still has one more question. Suppose for the first time I have "clean" ffp on USB, but my root user uses /ffp/bin/bash login shell. So at startup time my /ffp path will be linked to USB without bash (at first time). So the question is will I be able to connect to ffp via telnet ?

Regards,
alpha

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB