guowenxue
2023-12-19 84751c4e42fc1d377e0c1f509f950a0740935ec4
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