Those scripts are executed 2-5 minutes after startup, give it some time and see if it works then. Also shouldn't be executing it as root?