Permalink
leftyfb
Simplify enabling of ssh service
ed2671a
Jun 25, 2019
Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up
Find file
Copy path
raspberrypi-sys-mods/debian/raspberrypi-sys-mods.sshswitch.service
Find file
Copy path
[Unit] | |
Description=Turn on SSH if /boot/ssh is present | |
ConditionPathExistsGlob=/boot/ssh{,.txt} | |
After=regenerate_ssh_host_keys.service | |
[Service] | |
Type=oneshot | |
ExecStart=/bin/sh -c "systemctl enable --now ssh && rm -f /boot/ssh ; rm -f /boot/ssh.txt" | |
[Install] | |
WantedBy=multi-user.target | |