Remove dependence on 'sudo' and instead invoke the command with 'sudo' or directly as root. Sudo plays poorly with boot up.