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