Add support for config file
This commit is contained in:
parent
368afcdfd9
commit
b9e033da09
4 changed files with 21 additions and 4 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
set -e
|
||||
|
||||
CONFIG_FILE="/etc/dropbear/config"
|
||||
KEY_TYPES="ed25519 ecdsa rsa"
|
||||
|
||||
get_fingerprint() {
|
||||
|
@ -83,6 +84,12 @@ build() {
|
|||
add_dir "/var/log"
|
||||
touch "${BUILDROOT}"/var/log/lastlog
|
||||
|
||||
if [ -s $CONFIG_FILE ]; then
|
||||
echo "Using config file $CONFIG_FILE:"
|
||||
cat $CONFIG_FILE
|
||||
add_file $CONFIG_FILE
|
||||
fi
|
||||
|
||||
add_runscript
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue