Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pi@retropie:~ $ cat /lib/systemd/system/sshswitch.service
- [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 "update-rc.d ssh enable && invoke-rc.d ssh start && rm -f /boot/ssh ; rm -f /boot/ssh.txt"
- [Install]
- WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement