scripts dutchification - batch 1

This commit is contained in:
bergware
2023-10-02 19:12:03 +02:00
parent d7edbe5551
commit 90857f5a88

View File

@@ -45,11 +45,11 @@ sshd_start(){
# make sure ssh dir exists on flash
mkdir -p $SSH_BOOT
# restore saved keys, config file, etc. (but not subdirs)
cp $SSH_BOOT/* $SSH_ETC &>/dev/null
chmod 600 $SSH_ETC/* &>/dev/null
cp -f $SSH_BOOT/* $SSH_ETC 2>/dev/null
chmod 600 $SSH_ETC/* 2>/dev/null
# create host keys if needed and copy any newly generated key(s) back to flash
ssh-keygen -A
cp -n $SSH_ETC/ssh_host*_key* $SSH_BOOT/
cp -n $SSH_ETC/ssh_host*_key* $SSH_BOOT/ 2>/dev/null
# build configuration
sshd_build
# start daemon