Commit 90b58fab authored by baujc's avatar baujc Committed by Adam Wujek

Copy /usr/authorized_keys in /root/.ssh/ if it exists

This feature is very useful when we reboot very often the switch
especially during the development process.
parent a435f9df
......@@ -20,6 +20,11 @@ start_counter() {
start() {
echo -n "Starting dropbear sshd: "
# copy authorized keys if exists
if [ -f /usr/authorized_keys ] ; then
mkdir -p /root/.ssh/
cp /usr/authorized_keys /root/.ssh/
fi
# Make sure dropbear directory exists
if [ ! -d /etc/dropbear ] ; then
mkdir -p /etc/dropbear
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment