summaryrefslogtreecommitdiff
path: root/scripts/install/install-postinst-new
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-12-03 16:20:06 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-12-03 16:20:06 -0800
commit8cbbfa27c80fa2ff6d14893822320f878b24511e (patch)
treed4a343ca9b03ca7c14dea9dc2f9ccf128d2bcf39 /scripts/install/install-postinst-new
parentcd0320558342126ca8df91dd7d73f4561890e00d (diff)
parent1e64d65f2aa75817294fe76937f0170bf8d4f81a (diff)
downloadvyatta-cfg-system-8cbbfa27c80fa2ff6d14893822320f878b24511e.tar.gz
vyatta-cfg-system-8cbbfa27c80fa2ff6d14893822320f878b24511e.zip
Merge branch 'kenwood' of 192.168.100.1:git/vyatta-cfg-system into kenwood
Diffstat (limited to 'scripts/install/install-postinst-new')
-rwxr-xr-xscripts/install/install-postinst-new6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/install/install-postinst-new b/scripts/install/install-postinst-new
index 84b96989..d2187434 100755
--- a/scripts/install/install-postinst-new
+++ b/scripts/install/install-postinst-new
@@ -77,6 +77,12 @@ copy_config () {
chgrp vyattacfg $cfg_dir/config.boot
chmod 775 $cfg_dir/config.boot
fi
+
+ # copy ssh keys
+ if [ -d /mnt/ssh ]; then
+ echo "Copying SSH keys."
+ cp -p /mnt/ssh/* $rootfsdir/etc/ssh
+ fi
}
# setup grub on the boot sector of a user selected drive