View Single Post
Old 10-20-2006, 07:33 PM   #62
Mike Kostousov
Connoisseur
Mike Kostousov has learned how to read e-booksMike Kostousov has learned how to read e-booksMike Kostousov has learned how to read e-booksMike Kostousov has learned how to read e-booksMike Kostousov has learned how to read e-booksMike Kostousov has learned how to read e-booksMike Kostousov has learned how to read e-books
 
Posts: 50
Karma: 861
Join Date: Aug 2006
Device: Zaurus C1000/iLiad/SE K750i
I think, it is possible to use swap.
Somthing like that:

Code:
#!/bin/sh
dd if=/dev/null of=/mnt/card/.swapfile bs=1024 count=64K
mkswap /mnt/card/.swapfile
swapon /mnt/card/.swapfile
But, don't try to take out mmc card without "swapoff /mnt/card/.swapfile"

I also get dropbear worked. With public key it does connection to iliad more secure And it is possible to copy with scp. And navigate with konqueror via "fish://root@iliad_ip", but
fuser doesn't work with dropbear.

a.sh
Code:
#!/bin/sh
mkdir /home/root/.ssh
cp /opt/content/books/id_rsa.pub  /home/root/.ssh/authorized_keys
cp /opt/content/books/dr.sh /tmp
cp /opt/content/books/dropbear /tmp
cp /opt/content/books/dropbearkey /tmp

chmod 755 /tmp/dr.sh
chmod 755 /tmp/dropbear
chmod 755 /tmp/dropbearkey

if [ ! -e dropbear_dss_host_key ];then
/tmp/dropbearkey -t dss -f /opt/content/books/dropbear_dss_host_key
fi
if [ ! -e dropbear_rsa_host_key ];then
/tmp/dropbearkey -t rsa -f /opt/content/books/dropbear_rsa_host_key
fi
cp /opt/content/books/dropbear_dss_host_key /tmp
cp /opt/content/books/dropbear_rsa_host_key /tmp
sh /tmp/dr.sh &
dr.sh

Code:
#!/bin/sh
sleep 30
/usr/bin/wired.sh start dhcp
sleep 5
/tmp/dropbear -d /tmp/dropbear_dss_host_key -r /tmp/dropbear_rsa_host_key
id_rsa.pub - your public key.
Attached Files
File Type: tar dropbear.tar (300.0 KB, 416 views)

Last edited by Mike Kostousov; 10-20-2006 at 07:57 PM.
Mike Kostousov is offline   Reply With Quote