Browse Source

dropbear: enhanced to create /var/log/lastlog if missing

0.2-maint
Alejandro Mery 16 years ago
parent
commit
5cd4a1207f
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      overlay.d/dropbear/etc_dropbear_run.sh

+ 3
- 1
overlay.d/dropbear/etc_dropbear_run.sh

@ -2,7 +2,7 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN --- # --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# #
# Filename: target/idunn/initramfs/etc_dropbear_run.sh
# Filename: target/idunn/overlay.d/dropbear/etc_dropbear_run.sh
# Copyright (C) 2008 The OpenSDE Project # Copyright (C) 2008 The OpenSDE Project
# #
# More information can be found in the files COPYING and README. # More information can be found in the files COPYING and README.
@ -23,4 +23,6 @@ for t in rsa dss; do
[ -s "$dbkey" ] || dropbearkey -t $t -f $dbkey [ -s "$dbkey" ] || dropbearkey -t $t -f $dbkey
done done
[ -e /var/log/lastlog ] || touch /var/log/lastlog
exec dropbear -F -E exec dropbear -F -E

Loading…
Cancel
Save