* Got rid of the TMPDIR juggling by using BUILDROOT directly.
This commit is contained in:
parent
e646f1e99f
commit
59ba2c449c
1 changed files with 3 additions and 11 deletions
|
@ -83,24 +83,16 @@ build ()
|
||||||
add_binary "killall"
|
add_binary "killall"
|
||||||
add_binary "dropbear"
|
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_full_dir "/etc/dropbear"
|
||||||
add_file "/lib/libnss_files.so.2"
|
add_file "/lib/libnss_files.so.2"
|
||||||
add_dir "/var/run"
|
add_dir "/var/run"
|
||||||
|
|
||||||
touch "${TMPDIR}"/lastlog
|
|
||||||
add_dir "/var/log"
|
add_dir "/var/log"
|
||||||
add_file "${TMPDIR}/lastlog" "/var/log/lastlog"
|
touch "${BUILDROOT}"/var/log/lastlog
|
||||||
|
|
||||||
# cleanup
|
|
||||||
rm "${TMPDIR}/authorized_keys"
|
|
||||||
rm "${TMPDIR}/lastlog"
|
|
||||||
|
|
||||||
add_runscript
|
add_runscript
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
help ()
|
help ()
|
||||||
|
|
Loading…
Reference in a new issue