Skip to content

Commit

Permalink
* Got rid of the TMPDIR juggling by using BUILDROOT directly.
Browse files Browse the repository at this point in the history
  • Loading branch information
grazzolini committed Aug 11, 2015
1 parent e646f1e commit 59ba2c4
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions dropbear_install
Original file line number Diff line number Diff line change
Expand Up @@ -83,24 +83,16 @@ 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 ()
Expand Down

0 comments on commit 59ba2c4

Please sign in to comment.