Mar 19 10:15:50 raspberrypi systemd[1]: Starting /etc/rc.local Compatibility...
Mar 19 10:15:50 raspberrypi rc.local[1057]: [27B blob data]
Mar 19 10:15:50 raspberrypi systemd[1]: rc-local.service: Control process exited, code=exited, status=1/FAILURE
Mar 19 10:15:50 raspberrypi systemd[1]: rc-local.service: Failed with result 'exit-code'.
Mar 19 10:15:50 raspberrypi systemd[1]: Failed to start /etc/rc.local Compatibility.

‌最后检查换行符格式‌发现脚本包含 r 符号,需转换为 Unix 格式:

sudo sed -i 's/\r//' /etc/rc.local

标签: none

添加新评论