wok rev 1273
dropbear: declare config files
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Aug 18 11:56:29 2008 +0000 (2008-08-18) |
parents | e53076a6ce3f |
children | 48b017df5658 |
files | dropbear/receipt dropbear/stuff/init.d/dropbear |
line diff
1.1 --- a/dropbear/receipt Mon Aug 18 11:52:51 2008 +0000 1.2 +++ b/dropbear/receipt Mon Aug 18 11:56:29 2008 +0000 1.3 @@ -8,6 +8,7 @@ 1.4 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.5 WEB_SITE="http://matt.ucc.asn.au/dropbear/dropbear.html" 1.6 WGET_URL="http://matt.ucc.asn.au/dropbear/releases/$TARBALL" 1.7 +CONFIG_FILES="/etc/dropbear" 1.8 1.9 # Rules to configure and make the package. 1.10 compile_rules() 1.11 @@ -41,6 +42,8 @@ 1.12 mkdir -p $fs/etc 1.13 cp -a stuff/dropbear $fs/etc 1.14 cp -a stuff/init.d $fs/etc 1.15 + touch $fs/etc/dropbear/dropbear_dss_host_key \ 1.16 + $fs/etc/dropbear/dropbear_rsa_host_key 1.17 1.18 # Fix dropbear initscript perms 1.19 chown -R root.root $fs
2.1 --- a/dropbear/stuff/init.d/dropbear Mon Aug 18 11:52:51 2008 +0000 2.2 +++ b/dropbear/stuff/init.d/dropbear Mon Aug 18 11:56:29 2008 +0000 2.3 @@ -17,11 +17,11 @@ 2.4 case "$1" in 2.5 start) 2.6 # We need rsa and dss host key file to start dropbear. 2.7 - if [ ! -f /etc/dropbear/dropbear_rsa_host_key ] ; then 2.8 + if [ ! -s /etc/dropbear/dropbear_rsa_host_key ] ; then 2.9 echo "Generating $NAME rsa key... " 2.10 dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key 2.11 fi 2.12 - if [ ! -f /etc/dropbear/dropbear_dss_host_key ] ; then 2.13 + if [ ! -s /etc/dropbear/dropbear_dss_host_key ] ; then 2.14 echo "Generating $NAME dss key... " 2.15 dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key 2.16 fi