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 2010-02-06 08:40:17

Dis_tort_ion
New member
Registered: 2010-02-06
Posts: 1

setup-ffp script

Hi folks, here is a simple script, thought I would share.  Big thanks to those who do the hard work and make automation easier for me.

I use this on a DNS-321.  It will setup password stuff then grab the packages from inreto.de and wolf-u.li.  It will then install nano, findutils, and bash.  Makes bash the default shell, then enables and starts ssh daemon.

Heres how I use it:

1. get FTP access
2. copy fun_plug fun_plug.tgz and this script (I call it setup-ffp) to Volume_1, make proper executable permissions
3. reboot it and let the ffp do its thing
4. login the telnet and type

Code:

/mnt/HD_a2/setup-ffp

It will not deactivate telnet on its own.

Code:

#!/bin/sh

pwconv
passwd
usermod -s /ffp/bin/sh root
pwck
grpck
store-passwd.sh

mkdir /ffp/pkg/
cd /ffp/pkg/
rsync -av --delete inreto.de::dns323/fun-plug/0.5/packages .
rsync -av --delete wolf-u.li::ffp/additional .

funpkg -i /ffp/pkg/additional/app-editors/nano*.tgz
funpkg -i /ffp/pkg/packages/findutils*.tgz
funpkg -i /ffp/pkg/packages/bash*.tgz

chsh -s /mnt/HD_a2/ffp/bin/bash

chmod a+x /ffp/start/sshd.sh
sh /ffp/start/sshd.sh start

echo Now try SSH

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB