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.

#1 2012-09-30 20:49:42

carcamusa
New member
From: Spain
Registered: 2012-09-30
Posts: 4

impossible to install fun_plug. desperate

Hello excuse my bad English.
I intantado install fun_plug of all possible means in dns-313 firmware version 1.04.
I can never ever connect via telnet console opens and closes automatically.

ffp.log file gets the following message:

**** fun_plug script for DNS-323 (2008-08-11 tp@fonz.de) ****
**** fun_plug script modded by Uli (2012-02-21 ffp@wolf-u.li) ****
Thu Jan  1 23:31:50 BST 1970
ln -snf /mnt/HD_a2/ffp /ffp
/ffp/etc/rc: Not found or not executable

I've also used putty and telnet and enabled on the features of W7 and I get the message
Can not open connection to the host, on port 23: connection failed

ping the dns and all good

Help, thanks

Offline

 

#2 2012-10-02 14:29:32

Electrocut
Member
From: France
Registered: 2009-04-05
Posts: 195

Re: impossible to install fun_plug. desperate

You need to edit your "funplug" script, so that ffp goes to /mnt/HD_a4 (ext2 partition), instead of /mnt/HD_a2 (ntfs partition).
Cf. this article: http://www.shadowandy.net/2008/05/runni … ns-313.htm

To edit the "funplug" script, use a file editor that supports "Unix end of lines" (for example, notepad++)

Last edited by Electrocut (2012-10-02 14:30:30)


DNS-313

Offline

 

#3 2012-10-02 16:05:16

carcamusa
New member
From: Spain
Registered: 2012-09-30
Posts: 4

Re: impossible to install fun_plug. desperate

Hello. thank you very much for your reply.
I had already followed the tutorial. I replaced:
FFP_PATH = / mnt/HD_a2/ff
with
FFP_PATH = / mnt/HD_a4/ff

I replaced this line alone.
I used notepad + + and I saved the file in unix.
I have also removed the sh extension.
I always get the same answer:

n -snf /mnt/HD_a2/ffp /ffp
/ffp/etc/rc: Not found or not executable

This is the script that I use


#!/bin/sh

# switch to safe working directory on ramdisk
cd /

# write a log, in case sth goes wrong
FFP_LOG=/mnt/HD_a2/ffp.log
#FFP_LOG=/dev/null
exec >>$FFP_LOG 2>&1

# real path to ffp
FFP_PATH=/mnt/HD_a4/ffp

# where to search for the install tarball
FFP_TARBALL=/mnt/HD_a2/fun_plug.tgz

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

# rc file path
FFP_RC=/ffp/etc/rc


echo "**** fun_plug script for DNS-323 (2008-08-11 tp@fonz.de) ****"
date


# check for setup script. an example use for this is to load USB
# kernel modules and mount a USB storage device. The script is
# sourced, that means you can change variables, e.g. FFP_PATH to point
# to the USB device.
if [ -x $FFP_SETUP_SCRIPT ]; then
    echo "* Running $FFP_SETUP_SCRIPT ..."
    . $FFP_SETUP_SCRIPT
fi

# create /ffp link
echo "ln -snf $FFP_PATH /ffp"
ln -snf $FFP_PATH /ffp

# install tarball
if [ -r $FFP_TARBALL ]; then
    echo "* Installing $FFP_TARBALL ..."
    mkdir -p $FFP_PATH && tar xzf $FFP_TARBALL -C $FFP_PATH && /ffp/bin/tar xzf $FFP_TARBALL -C $FFP_PATH
    if [ $? -eq 0 ]; then
        echo "* OK"
    fi
    rm $FFP_TARBALL
fi

# suid busybox
if [ -x /ffp/bin/busybox ]; then
    chown root.root /ffp/bin/busybox
    chmod 0755 /ffp/bin/busybox
    chmod u+s /ffp/bin/busybox
fi

# run fun_plug.init, if present
if [ -x /ffp/etc/fun_plug.init ]; then
    echo "* Running /ffp/etc/fun_plug.init ..."
    /ffp/etc/fun_plug.init
fi

# run fun_plug.local, if present
if [ -x /ffp/etc/fun_plug.local ]; then
    echo "* Running /ffp/etc/fun_plug.local ..."
    /ffp/etc/fun_plug.local
fi

# run commands
if [ -x $FFP_RC ]; then
    echo "* Running $FFP_RC ..."
    $FFP_RC
    echo "*  OK"
else
    echo "$FFP_RC: Not found or not executable"
fi




need to change anything else in the scrip fun_plug??

Greetings and thanks

Offline

 

#4 2012-10-02 20:50:19

Electrocut
Member
From: France
Registered: 2009-04-05
Posts: 195

Re: impossible to install fun_plug. desperate

There must be a problem somewhere. Your log is not logical:

You funplug content:

FFP_PATH = /mnt/HD_a4/ffp
...
echo "ln -snf $FFP_PATH /ffp"
ln -snf $FFP_PATH /ffp

Your log file

ln -snf /mnt/HD_a2/ffp /ffp
/ffp/etc/rc: Not found or not executable

So the change you have done on fun_plug file has not been taken into account, for sure.

Just to try, here's my fun_plug file.

Last edited by Electrocut (2012-10-02 20:51:54)


Attachments:
Attachment Icon fun_plug, Size: 2,108 bytes, Downloads: 293

DNS-313

Offline

 

#5 2012-10-02 22:09:36

carcamusa
New member
From: Spain
Registered: 2012-09-30
Posts: 4

Re: impossible to install fun_plug. desperate

Hello.
I installed your fun_plug and not create any files fft.log
My model is dns-313 version A.
firmware 1.03

Does not seem to fun_plug.gz file installation.
Can you think of anything I can do?.
regards

Offline

 

#6 2012-10-02 22:57:23

carcamusa
New member
From: Spain
Registered: 2012-09-30
Posts: 4

Re: impossible to install fun_plug. desperate

Ole, ole, ole, ole
fun_plug is already installed.
the problem was that when the fun_plug.tgz download network, the file has a .gz.
I have replaced the extension of arvhivo. gz extension by the tgz file. and everything is correct
all OK

thank you very much

Offline

 

#7 2012-10-02 23:01:01

Electrocut
Member
From: France
Registered: 2009-04-05
Posts: 195

Re: impossible to install fun_plug. desperate

Great! Thank you for the feedback!


DNS-313

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB