guowenxue
2023-12-12 849fbd3ab201e2e4694d302787fed48fb2172898
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