[Unit] | |
Description=AutoRun Script | |
Requires=dbus.service | |
After=dbus.service | |
After=systemd-logind.service | |
[Service] | |
RemainAfterExit=yes | |
TTYPath=/dev/ttyGS1 | |
WorkingDirectory=/run/media/mmcblk1p1 | |
ExecStartPre=/bin/ls -al /run/media/mmcblk1p1 | |
ExecStartPre=-/bin/ls -al /run/media/mmcblk1p2 | |
ExecStartPre=/bin/echo "hi, waiting 10" | |
ExecStartPre=/bin/sleep 10 | |
ExecStartPre=/bin/echo "hi, go" | |
ExecStart=/bin/sh /run/media/mmcblk1p1/autorun.sh | |
StandardOutput=tty | |
StandardError=tty | |
[Install] | |
WantedBy=multi-user.target |