summaryrefslogtreecommitdiffstats
path: root/build_tools/clarch/larch/run/ssh_init
diff options
context:
space:
mode:
authorJames Meyer <jams@linhes.org>2010-12-04 23:44:45 (GMT)
committerJames Meyer <jams@linhes.org>2010-12-04 23:44:51 (GMT)
commitf51fb708846d13222bd97b3f760eb3be902c0be0 (patch)
treead25ff81828f12cb7da86384863e163cb4e001f2 /build_tools/clarch/larch/run/ssh_init
parent4384efe238cdfeac86fae0d8e1097a409350f8c6 (diff)
downloadlinhes_dev-f51fb708846d13222bd97b3f760eb3be902c0be0.zip
remove old versions of larch 6 and 7
Diffstat (limited to 'build_tools/clarch/larch/run/ssh_init')
-rwxr-xr-xbuild_tools/clarch/larch/run/ssh_init18
1 files changed, 0 insertions, 18 deletions
diff --git a/build_tools/clarch/larch/run/ssh_init b/build_tools/clarch/larch/run/ssh_init
deleted file mode 100755
index 66a716f..0000000
--- a/build_tools/clarch/larch/run/ssh_init
+++ /dev/null
@@ -1,18 +0,0 @@
-#! /bin/sh
-
-DESTDIR=$1
-echo
-echo "************** Generating ssh keys to ${DESTDIR}/etc/ssh **************"
-echo
-# ssh initialisation - done here so that it doesn't need to be done
-# when the cd boots
-if [ -x ${DESTDIR}/usr/sbin/sshd ]; then
- # Do it on the newly built system, in case the host doesn't have ssh
- mount --bind /dev ${DESTDIR}/dev
- chroot ${DESTDIR} bin/sh -c "{\
- /usr/bin/ssh-keygen -t rsa1 -N \"\" -f /etc/ssh/ssh_host_key >/dev/null;\
- /usr/bin/ssh-keygen -t rsa -N \"\" -f /etc/ssh/ssh_host_rsa_key >/dev/null;\
- /usr/bin/ssh-keygen -t dsa -N \"\" -f /etc/ssh/ssh_host_dsa_key >/dev/null;\
- }"
- umount ${DESTDIR}/dev
-fi