dropbear: rework init scripts

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-01-09 03:50:31 +01:00
parent 0f9a154315
commit 690658cdf3

View File

@ -1,5 +1,3 @@
#!/bin/sh
################################################################################
# Copyright (C) 2009-2010 OpenELEC.tv
# http://www.openelec.tv
@ -24,13 +22,10 @@
#
# runlevels: openelec, textmode
. /etc/profile
RSA_KEY_FILE="/storage/.cache/dropbear/dropbear_rsa_host_key"
RSAPUB_KEY_FILE="/storage/.cache/dropbear/dropbear_rsa_host_key.pub"
DSS_KEY_FILE="/storage/.cache/dropbear/dropbear_dss_host_key"
(
RSA_KEY_FILE="/storage/.cache/dropbear/dropbear_rsa_host_key"
RSAPUB_KEY_FILE="/storage/.cache/dropbear/dropbear_rsa_host_key.pub"
DSS_KEY_FILE="/storage/.cache/dropbear/dropbear_dss_host_key"
# Check for the Dropbear RSA key
if [ ! -f $RSA_KEY_FILE ] ; then