First version of init script (autostart)