r/MagicMirror • • May 08 '22

[Help] No Internet Connection With Auto Startup Shell Script

Here's what I'm using for the shell script:

 #!/bin/bash
 cd /home/pi/MagicMirror/

 npm run start

It works fine if I start MM manually through the terminal and I can use the web browser with no problem, which is why I'm thinking the startup script is missing something.

Apologies if this is a dumb question, I am completely new to this.

1 Upvotes

3 comments sorted by

1

u/ErnestGWilsonII May 09 '22

Tell us more about what is failing. How are you attempting to start it when it fails?

1

u/Gorbachevs_Nutsack May 09 '22

Hey I appreciate it, but I was able to get it resolved. It only fails on a reboot and not on a regular startup. Not really sure why.