From 72e1395dd72655942d8be94bdb8bb588a7b87049 Mon Sep 17 00:00:00 2001 From: Nagy Karoly Gabriel Date: Fri, 22 Jun 2007 12:56:23 +0000 Subject: [PATCH] * injected root key on tardiba git-svn-id: svn+ssh://svn.opensde.net/home/users/karasz/x5/tardiba/trunk@78 471cc25b-571d-0410-8e29-1f4f9b506cef --- pkg_openssh.conf | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkg_openssh.conf b/pkg_openssh.conf index 4dea473..dbefb79 100644 --- a/pkg_openssh.conf +++ b/pkg_openssh.conf @@ -17,8 +17,17 @@ echo_status openssh_runit_link() { -echo "ln -svnf /etc/ssh /service/ssh" >> $root/var/adm/postinstall/openssh + echo "ln -svnf /etc/ssh /service/ssh" >> $root/var/adm/postinstall/openssh } +inject_tardiba_root_key() { + + mkdir -p $root/root/.ssh + touch $root/root/.ssh/authorized_keys + chmod 755 $root/root/.ssh + cat $base/target/tardiba/99-final/id_rsa.pub > $root/root/.ssh/authorized_keys + chmod 600 $root/root/.ssh/authorized_keys +} hook_add postinstall 6 "openssh_runit_link" +hook_add postinstall 7 "inject_tardiba_root_key"