2015-12-10, 15:07
(2015-12-10, 14:42)Milhouse Wrote: There should be no space between ! and /
(2015-12-10, 14:12)doveman2 Wrote: : not found# .config/autostart.sh: line 6:
Save the autostart.sh file in Unix format - don't save it with Windows line endings. Use an editor like Notepad++ or TextPad that understand Unix line endings. Or use vi or nano to create the file in ssh on the Pi itself.
I'm using Notepad++. I'm pretty sure I copied this exactly from gendo's post but I've removed the space between ! and / now and still get the same output when I run autostart.sh.
I even tried opening it with nano and saving it, both with and without pressing return to go to a newline after the last command and now when I run it I get
: not foundostart.sh: line 6:
EDIT: OK, if I create a file from scratch with nano it works and gives
rmmod: ERROR: Module dvb_usb_af9035 is in use
modprobe
so it seems I can't even use Notepad++ to create these files.
After rebooting "journalctl --no-pager | grep autostart" still doesn't produce any output but "systemctl status kodi-autostart" now gives me
â kodi-autostart.service - Kodi user autostart script
Loaded: loaded (/usr/lib/systemd/system/kodi-autostart.service; disabled; vendor preset: enabled)
Active: active (exited) since Thu 1970-01-01 01:00:04 BST; 45 years 11 months ago
Process: 332 ExecStart=/bin/sh -c . /etc/profile; exec /bin/sh /storage/.config/autostart.sh (code=exited, status=0/SUCCESS)
Main PID: 332 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/kodi-autostart.service
Dec 10 13:12:07 OpenELEC sh[332]: rmmod
Dec 10 13:12:07 OpenELEC sh[332]: rmmod: ERROR: Module dvb_usb_af9035 is in use
Dec 10 13:12:07 OpenELEC sh[332]: modprobe
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
Hint: Some lines were ellipsized, use -l to show in full.
so it seems to be running properly now.