summarylogtreecommitdiffstats
path: root/hpnsshdgenkeys.service
diff options
context:
space:
mode:
authorzer0def2022-05-13 07:44:53 +0200
committerzer0def2022-05-13 07:44:53 +0200
commit728576f5e92dcae0010131bf757788f12760abcd (patch)
treed65eae684d0bd7af9fd47e3fc7442190d23207ae /hpnsshdgenkeys.service
parentaa7483e3fae0adf5cd105720ffc05ebcdc0df272 (diff)
downloadaur-728576f5e92dcae0010131bf757788f12760abcd.tar.gz
Added shim package maintaining behavior pre-HPN17v0
Diffstat (limited to 'hpnsshdgenkeys.service')
-rw-r--r--hpnsshdgenkeys.service17
1 files changed, 17 insertions, 0 deletions
diff --git a/hpnsshdgenkeys.service b/hpnsshdgenkeys.service
new file mode 100644
index 000000000000..c8c6ce3d2824
--- /dev/null
+++ b/hpnsshdgenkeys.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=SSH-HPN Key Generation
+ConditionPathExists=|!/etc/hpnssh/ssh_host_dsa_key
+ConditionPathExists=|!/etc/hpnssh/ssh_host_dsa_key.pub
+ConditionPathExists=|!/etc/hpnssh/ssh_host_ecdsa_key
+ConditionPathExists=|!/etc/hpnssh/ssh_host_ecdsa_key.pub
+ConditionPathExists=|!/etc/hpnssh/ssh_host_ed25519_key
+ConditionPathExists=|!/etc/hpnssh/ssh_host_ed25519_key.pub
+ConditionPathExists=|!/etc/hpnssh/ssh_host_key
+ConditionPathExists=|!/etc/hpnssh/ssh_host_key.pub
+ConditionPathExists=|!/etc/hpnssh/ssh_host_rsa_key
+ConditionPathExists=|!/etc/hpnssh/ssh_host_rsa_key.pub
+
+[Service]
+ExecStart=/usr/bin/hpnssh-keygen -A
+Type=oneshot
+RemainAfterExit=yes