#!/bin/bash post_install() { local dropbear_authorized_keys="/etc/dropbear/initrd.authorized_keys" local etc_dropbear=$(dirname "${dropbear_authorized_keys}") [ -d "${etc_dropbear}" ] || mkdir -p "${etc_dropbear}" [ -e "${dropbear_authorized_keys}" ] || touch "${dropbear_authorized_keys}" chmod 600 "${dropbear_authorized_keys}" cat <