Skip to content

Commit

Permalink
Merge pull request #4 from grazzolini/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
grazzolini committed Aug 11, 2015
2 parents a16eaf6 + 59ba2c4 commit da78b4c
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions dropbear_install
Original file line number Diff line number Diff line change
Expand Up @@ -83,32 +83,24 @@ build ()
add_binary "killall"
add_binary "dropbear"

cat /etc/dropbear/root_key > "${TMPDIR}"/authorized_keys
add_dir "/root/.ssh"
cat /etc/dropbear/root_key > "${BUILDROOT}"/root/.ssh/authorized_keys

add_dir "/.ssh"
add_file "${TMPDIR}/authorized_keys" "/.ssh/authorized_keys"
add_full_dir "/etc/dropbear"
add_file "/lib/libnss_files.so.2"
add_dir "/var/run"

touch "${TMPDIR}"/lastlog
add_dir "/var/log"
add_file "${TMPDIR}/lastlog" "/var/log/lastlog"

# cleanup
rm "${TMPDIR}/authorized_keys"
rm "${TMPDIR}/lastlog"
touch "${BUILDROOT}"/var/log/lastlog

add_runscript

}

help ()
{
cat<<HELPEOF
This hook is meant to be used in conjunction with mkinitcpio-netconf and/or
mkinitcpio-ppp. It DOES NOT provide any default shell. It will only install
and start dropbear on early userspace. In the package mkinitcpio-shells you
and start dropbear on early userspace. In the package mkinitcpio-utils you
will find hooks and shells for remote unlocking a luks root partition,
among others.
HELPEOF
Expand Down

0 comments on commit da78b4c

Please sign in to comment.