Browse Source

initramfs: added dropbear service

0.2-maint
Alejandro Mery 15 years ago
parent
commit
2dc2a04dd4
3 changed files with 47 additions and 0 deletions
  1. +20
    -0
      initramfs/etc_dropbear_log_run.sh
  2. +26
    -0
      initramfs/etc_dropbear_run.sh
  3. +1
    -0
      initramfs/var_service_dropbear.ln

+ 20
- 0
initramfs/etc_dropbear_log_run.sh

@ -0,0 +1,20 @@
#!/bin/sh
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: target/idunn/initramfs/etc_dropbear_log_run.sh
# Copyright (C) 2008 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
LOGDIR=/var/log/dropbear
mkdir -p $LOGDIR
exec svlogd -tt $LOGDIR

+ 26
- 0
initramfs/etc_dropbear_run.sh

@ -0,0 +1,26 @@
#!/bin/sh
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: target/idunn/initramfs/etc_dropbear_run.sh
# Copyright (C) 2008 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
exec 2>&1
[ -e /dev/urandom ] || exit 111
for t in rsa dss; do
dbkey=/etc/dropbear/dropbear_${t}_host_key
[ -s "$dbkey" ] || dropbearkey -t $t -f $dbkey
done
exec dropbear -F -E

+ 1
- 0
initramfs/var_service_dropbear.ln

@ -0,0 +1 @@
/etc/dropbear

Loading…
Cancel
Save