xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-core/dropbear/dropbear/dropbearkey.service (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1[Unit]
2Description=SSH Key Generation
3RequiresMountsFor=/var /var/lib
4ConditionPathExists=!/etc/dropbear/dropbear_rsa_host_key
5ConditionPathExists=!/var/lib/dropbear/dropbear_rsa_host_key
6
7[Service]
8Environment="DROPBEAR_RSAKEY_DIR=/etc/dropbear"
9EnvironmentFile=-/etc/default/dropbear
10Type=oneshot
11ExecStart=@BASE_BINDIR@/mkdir -p ${DROPBEAR_RSAKEY_DIR}
12ExecStart=@SBINDIR@/dropbearkey -t rsa -f ${DROPBEAR_RSAKEY_DIR}/dropbear_rsa_host_key
13RemainAfterExit=yes
14Nice=10
15