. /fs/config/system
fi
-if [ -f /fs/config/dropbear_dss_host_key ]
+if [ -f /fs/config/dropbear.tar ]
then
- cp /fs/config/dropbear_dss_host_key /etc/dropbear
- chmod 600 /etc/dropbear/dropbear_dss_host_key
-fi
-
-if [ -f /fs/config/dropbear_rsa_host_key ]
-then
- cp /fs/config/dropbear_rsa_host_key /etc/dropbear
- chmod 600 /etc/dropbear/dropbear_rsa_host_key
+ RD=`pwd`
+ cd /
+ tar xf /fs/config/dropbear.tar
+ cd $RD
fi
mkdir -p /fs/config/
fi
-if [ ! -f /fs/config/dropbear_dss_host_key ]
+if [ ! -f /fs/config/dropbear.tar ]
then
- cp /etc/dropbear/dropbear_dss_host_key /fs/config
-fi
-
-if [ ! -f /fs/config/dropbear_rsa_host_key ]
-then
- cp /etc/dropbear/dropbear_rsa_host_key /fs/config
+ RD=`pwd`
+ cd /
+ tar cf /fs/config/dropbear.tar /etc/dropbear
+ cd $RD
fi