Advertisement
Guest User

Untitled

a guest
Jan 11th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. pi@retropie:~ $ cat /lib/systemd/system/sshswitch.service
  2. [Unit]
  3. Description=Turn on SSH if /boot/ssh is present
  4. ConditionPathExistsGlob=/boot/ssh{,.txt}
  5. After=regenerate_ssh_host_keys.service
  6.  
  7. [Service]
  8. Type=oneshot
  9. ExecStart=/bin/sh -c "update-rc.d ssh enable && invoke-rc.d ssh start && rm -f /boot/ssh ; rm -f /boot/ssh.txt"
  10.  
  11. [Install]
  12. WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement