commit | author | age | ||
849fbd | 1 | [Unit] |
G | 2 | Description=Turn on SSH if /run/media/boot-mmcblk0p1/ssh is present |
3 | ConditionPathExists=/run/media/boot-mmcblk0p1/ssh | |
4 | After=weston.service | |
5 | ||
6 | [Service] | |
7 | Type=oneshot | |
8 | ExecStart=/bin/sh -c "/bin/sed -i 's/^#PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config && rm -f /run/media/boot-mmcblk0p1/ssh" | |
9 | ||
10 | [Install] | |
11 | WantedBy=multi-user.target |