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 2007-07-01 18:00:08

bareare
Member
Registered: 2007-05-24
Posts: 29

Run fun_plug job with SSHD at boot time

Hi

I have a box where I'm running Debian. Using fun_plug system, it starts up Telnet just fine all the time. But I have to manually type the content below the "--------" each time I reboot the machine to start SSH and get into Debian. Lucky me, it isn't to often I have to reboot, but it is a bit unwanted behaviour..

Anyone know the solution to this?


dmesg > /mnt/HD_a2/dmesg.out
/mnt/HD_a2/nc -l -p 10000 -e /bin/sh &

mkdir /mnt/HD_a2/lnx_bin/
cd /mnt/HD_a2/lnx_bin/

/mnt/HD_a2/starttelnet.sh

------------------------------ So far so good.. now, it should have run this to start SSH -------

export PATH=$PATH:/mnt/HD_a2/lnx_bin/

export DISK1=/mnt/HD_a2
export PATH=$PATH:$DISK1/lnx_bin:

cd $DISK1
mkdir etch/$DISK1
mount --bind $DISK1 etch/$DISK1
mkdir etch/mnt/root
mount --bind / etch/mnt/root
mkdir etch/dev
mount --bind /dev etch/dev
mkdir etch/sys
mkdir etch/sys/crfs
mount --bind /sys  etch/sys
mount --bind /sys/crfs etch/sys/crfs
mkdir etch/proc
mount --bind /proc etch/proc
cp -f /proc/mounts etch/etc/mtab
/mnt/HD_a2/lnx_bin/busybox3 chroot /mnt/HD_a2/etch
/etc/init.d/ssh start >/var/log/ssh.log 2>&1

Offline

 

#2 2007-07-01 18:17:53

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

Re: Run fun_plug job with SSHD at boot time

bareare wrote:

/mnt/HD_a2/lnx_bin/busybox3 chroot /mnt/HD_a2/etch
/etc/init.d/ssh start >/var/log/ssh.log 2>&1

If this is really two lines, it's wrong. Should be all on one line.

Offline

 

#3 2007-07-02 08:07:13

bareare
Member
Registered: 2007-05-24
Posts: 29

Re: Run fun_plug job with SSHD at boot time

Thanks a lot! smile That fixed it.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB