From 5124c4932b9aea51fefc402049cb888d6636c59b Mon Sep 17 00:00:00 2001 From: Paul J R Date: Sat, 24 Aug 2013 22:55:36 +1000 Subject: [PATCH] improved startup --- .../filesystem/etc/init.d/S01custom_pre_startup | 14 +++++--------- .../custom/filesystem/etc/init.d/S99final_sequence | 12 +++++------- 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/src/buildroot-2013.05/custom/filesystem/etc/init.d/S01custom_pre_startup b/src/buildroot-2013.05/custom/filesystem/etc/init.d/S01custom_pre_startup index dd39d06..17929bb 100755 --- a/src/buildroot-2013.05/custom/filesystem/etc/init.d/S01custom_pre_startup +++ b/src/buildroot-2013.05/custom/filesystem/etc/init.d/S01custom_pre_startup @@ -24,14 +24,10 @@ then . /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 diff --git a/src/buildroot-2013.05/custom/filesystem/etc/init.d/S99final_sequence b/src/buildroot-2013.05/custom/filesystem/etc/init.d/S99final_sequence index e09e653..a4b3781 100755 --- a/src/buildroot-2013.05/custom/filesystem/etc/init.d/S99final_sequence +++ b/src/buildroot-2013.05/custom/filesystem/etc/init.d/S99final_sequence @@ -7,12 +7,10 @@ else 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 -- 1.7.0.4