rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | [Unit] |
| 2 | Description=AutoRun Script |
| 3 | Requires=dbus.service |
| 4 | After=dbus.service |
| 5 | After=systemd-logind.service |
| 6 | |
| 7 | [Service] |
| 8 | RemainAfterExit=yes |
| 9 | TTYPath=/dev/ttyGS1 |
| 10 | WorkingDirectory=/run/media/mmcblk1p1 |
| 11 | ExecStartPre=/bin/ls -al /run/media/mmcblk1p1 |
| 12 | ExecStartPre=-/bin/ls -al /run/media/mmcblk1p2 |
| 13 | ExecStartPre=/bin/echo "hi, waiting 10" |
| 14 | ExecStartPre=/bin/sleep 10 |
| 15 | ExecStartPre=/bin/echo "hi, go" |
| 16 | ExecStart=/bin/sh /run/media/mmcblk1p1/autorun.sh |
| 17 | StandardOutput=tty |
| 18 | StandardError=tty |
| 19 | |
| 20 | [Install] |
| 21 | WantedBy=multi-user.target |