aboutsummaryrefslogtreecommitdiff
path: root/release/picobsd/build
diff options
context:
space:
mode:
authorLuigi Rizzo <luigi@FreeBSD.org>2001-10-07 17:22:46 +0000
committerLuigi Rizzo <luigi@FreeBSD.org>2001-10-07 17:22:46 +0000
commit9bbeaf002bf113e4d46e91aad150f2a7be2d0616 (patch)
treebaf715ec005d85e5781c7ae3f585972a9d3cd2d2 /release/picobsd/build
parente46899fcdb97946ac617f4921a0100f670ab3444 (diff)
downloadsrc-9bbeaf002bf113e4d46e91aad150f2a7be2d0616.tar.gz
src-9bbeaf002bf113e4d46e91aad150f2a7be2d0616.zip
Use host keys from the config directory if they exist, instead of
regenerating them. Make the script handle relative paths for the source directory.
Notes
Notes: svn path=/head/; revision=84627
Diffstat (limited to 'release/picobsd/build')
-rwxr-xr-xrelease/picobsd/build/picobsd8
1 files changed, 6 insertions, 2 deletions
diff --git a/release/picobsd/build/picobsd b/release/picobsd/build/picobsd
index 6c21e405cdf6..be83b5c38ed5 100755
--- a/release/picobsd/build/picobsd
+++ b/release/picobsd/build/picobsd
@@ -568,7 +568,11 @@ populate_mfs_tree() {
if [ -f ${dst}/stand/sshd ] ; then
log "Creating host key for sshd"
- ssh-keygen -f ${dst}/etc/ssh_host_key -N "" -C "root@picobsd"
+ if [ -f ${dst}/etc/ssh_host_key ] ; then
+ log "Using existing host key"
+ else
+ ssh-keygen -f ${dst}/etc/ssh_host_key -N "" -C "root@picobsd"
+ fi
fi
if [ -d ${MY_TREE}/mfs_tree ]; then
@@ -806,7 +810,7 @@ set_defaults
while [ true ]; do
case $1 in
--src) # set the source path instead of /usr/src
- SRC=$2
+ SRC=`(cd $2; pwd)`
shift
;;
--init)