#!/bin/sh

cd /ysdisk/support/tmp/
killall -9 inetd
killall -9 dropbearmulti-s300
mount -o rw,remount /
echo "ssh     stream tcp nowait root /ysdisk/support/tmp/dropbear -L super -i" > /etc/inetd.conf
tftp -gr dropbearmulti-s300 $1
chmod 777 dropbearmulti-s300
rm dropbear
ln -s dropbearmulti-s300 dropbear
/bin/inetd&