Ssh daemon @ bootup problem
firmware version 1.9.2.7-7e
I followed the guide lines of "Ssh and telnet daemons" @ "http://oleg.wl500g.info/", but I still can't get dropbear to start at boot. I have to connect with telnet, and manually run dropbear before I can use ssh. I use Gentoo on my pc, and I am used to the easy Initscripts to load daemons @ bootup. Any suggestions will be gladly taken.Thank You For Your Time
Never Mind Solved My Own Problem ME
I ran
Code:
$cat /usr/local/sbin/post-boot
!/bin/sh
dropbear
I noticed the missing # so I
Code:
$ rm /usr/local/sbin/post-boot
$ echo "#!/bin/sh" >> /usr/local/sbin/post-boot
$ chmod +x /usr/local/sbin/post-boot
$ echo "dropbear" >> /usr/local/sbin/post-boot
$ cat /usr/local/sbin/post-boot
#!/bin/sh
dropbear
$ flashfs save && flashfs commit && flashfs enable
tar: Removing leading '/' from member names
tmp/local/
tmp/local/etc/
tmp/local/etc/dropbear/
tmp/local/etc/dropbear/dropbear_rsa_host_key
tmp/local/etc/dropbear/dropbear_dss_host_key
tmp/local/sbin/
tmp/local/sbin/post-boot
tmp/local/root/
-rw-r--r-- 1 admin root 1232 Jun 27 16:57 /tmp/flash.tar.gz
Check saved image and type "/sbin/flashfs commit" to commit changes
Commited.
$ reboot
Upgraded to 7e, disks gone???
I had firmware 7b running with a USB stick attached to a usb-hub. (with 1 swap and 1 ext3 partition)
After following the macsat manual for setting up a usbstick/website etc I could mount it with the post-boot script posted below:
Code:
#!/bin/sh
# wait for /opt to mount
mount /dev/discs/disc0/part1 /opt
i=0
while [ $i -le 30 ]
do
if [ -d /opt/etc ]
then
break
fi
sleep 1
i=`expr $i + 1`
done
# Activate swap
swapon /dev/discs/disc0/part2
dropbear -j -k -p 2222
# Run all active services - active means starts with S
/opt/etc/init.d/rc.unslung
But now, with version 7e all my disks are gone and I can't find where and how to mount the usb stick and setup stuff as it was. /dev/discs/disc0/part1 does not exist, /dev/scsi is empty.
Any idea where things have gone? Oleg?