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-26 21:23:52

marca
Member
Registered: 2007-10-13
Posts: 64

Replicate DNS-323 settings

I have setup a DNS-323 system the way i like it. (It has twonky configured, a new smb mount point etc.)
I have then made a systemfiles.tar file of all content on /mnt/HD_a2/ (including "fun plug" etc..)
I have then changed time, time server, name of unit and turned off UPnP & iTunes and saved the settings as a file.

I know want an easy way to replicate this system to a new unit (or more units)
Please let me know the best way to do that, to my understanding i need to

1. create a new "fun plug" that extracts the the tar file.
2. boot up the new DNS-323 and enable RAID1 and format drives
3. copy the new "fun plug" and systemfiles.tar
4. reboot unit
5. load the setting file

will this be all. And can you plese help with the "fun plug" that only need to be run once, right?
or is there a better way to do this?

Thanks in advance

Offline

 

#2 2008-03-26 21:34:35

marca
Member
Registered: 2007-10-13
Posts: 64

Re: Replicate DNS-323 settings

Could my "fun plug" look something like this? (im a noob in this)


------------------------------------------------------------------------------------
#!/bin/sh

VOL1=/mnt/HD_a2
VOL2=/mnt/HD_b2
SYSTEMFILESTAR=${VOL1}/systemfiles.tar
FUNPLUGDIR=${VOL1}/systemfiles
ETCDIR=${FUNPLUGDIR}/etc
BINDIR=${FUNPLUGDIR}/bin
SBINDIR=${FUNPLUGDIR}/bin
LIBDIR=${FUNPLUGDIR}/lib
LOGDIR=${FUNPLUGDIR}/log
LOGFILE=${LOGDIR}/fun_plug.log
PATH=${BINDIR}:${PATH}
LD_LIBRARY_PATH=${LIBDIR}

export VOL1
export VOL2
export FUNPLUGDIR
export ETCDIR
export BINDIR
export LIBDIR
export LOGDIR
export LOGFILE
export PATH
export LD_LIBRARY_PATH

umask 022

mkdir -p ${FUNPLUGDIR} ${LOGDIR}
echo "....ooooOOOO ----- marca ----- OOOOoooo....." >>${LOGFILE}
echo "." >>${LOGFILE}
echo "." >>${LOGFILE}
date >>${LOGFILE}

if [ -r "${SYSTEMFILESTAR}" ]; then
    echo "* Extracting ${SYSTEMFILESTAR}..."
    /bin/tar -xv -f ${SYSTEMFILESTAR} -C ${VOL1}
    echo "* Deleting ${SYSTEMFILESTAR}..."
    rm -f ${SYSTEMFILESTAR}
fi


# suid busybox
if [ -e ${BINDIR}/busybox ]; then
    chown root.root ${BINDIR}/busybox
    chmod 0755 ${BINDIR}/busybox
    chmod u+s ${BINDIR}/busybox
fi

echo "${LIBDIR}" >>/etc/ld.so.conf
ldconfig

if [ -d "${FUNPLUGDIR}/start" ]; then
    for fun_plug_script in ${FUNPLUGDIR}/start/*.sh; do
        if [ -x "${fun_plug_script}" ]; then
            echo "* Running ${fun_plug_script} start ..." >>${LOGFILE}
            ${fun_plug_script} start 1>>${LOGFILE} 2>&1
        else
            echo "* ${fun_plug_script} not executable..." >>${LOGFILE}
        fi
    done
else
    echo "* ${FUNPLUGDIR}/start: Directory not found"
fi

echo "Done - " >>${LOGFILE}
---------------------------------------------------------------------------------

Offline

 

#3 2008-03-27 13:11:05

marca
Member
Registered: 2007-10-13
Posts: 64

Re: Replicate DNS-323 settings

This fun plug does not work, it only creates a "systemfiles" folder containing the log file (that does not contain anything useful).

I've also tested just by adding these 2 lines in my standard working fun plug file in the top:
tar -xv -f systemfiles.tar
rm -f systemfiles.tar

but that gives the same as with the above.

Would really appreciate help

Thanks

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB