I have a script inside of /etc/init.d/wifi and I want to start it on boot. I first gave it permissions by running sudo chmod 755 wifi, then I ran sudo update-rc.d wifi defaults. Finally, I enabled it with wifi enable and it worked perfectly. However, when I did a reboot, the service wasn't active.
Why? What am I missing? I'm using Debian 9.
rc? Or are you using systemd? If the latter, your question should contain the output ofsystemctl status wifi. In either case, your question should also show the descriptive comment block in the script, that is usually at the beginning.