Merge de26d19079
into 3905a71c1d
This commit is contained in:
commit
d7aa4fd9fd
2 changed files with 19 additions and 1 deletions
11
dropbear.service
Normal file
11
dropbear.service
Normal file
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=Dropbear SSH Daemon
|
||||
DefaultDependencies=no
|
||||
Before=cryptsetup.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/dropbear -F -s -j -k
|
||||
|
||||
[Install]
|
||||
WantedBy=cryptsetup.target
|
|
@ -86,7 +86,14 @@ build ()
|
|||
add_dir "/var/log"
|
||||
touch "${BUILDROOT}"/var/log/lastlog
|
||||
|
||||
#systemd enabled
|
||||
declare -F add_systemd_unit > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
add_file "/usr/share/mkinitcpio-dropbear/dropbear.service" "/etc/systemd/system/dropbear.service"
|
||||
systemctl --root "$BUILDROOT" enable dropbear.service
|
||||
else
|
||||
add_runscript
|
||||
fi
|
||||
}
|
||||
|
||||
help ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue