Yes, that title is a complete mess. I didn't really know how else to describe it.
I'm setting up my RPi to run Homebridge in a screen on startup. I've edited my rc.local file to include this line:
su - pi -c "screen -dm -S hbscreen homebridge"
It creates a screen called "hbscreen" which executes the command "homebridge". Now the problem is that I'd like to add an argument so the command reads "homebridge -I".
Seeing as I like to just try things I simply added -I to the line and got this:
su - pi -c "screen -dm -S hbscreen homebridge -I"
But suddenly my RPi wouldn't boot anymore. So, I guess that wasn't the right way to go about it.
I've been googling for half an hour now and I can't seem to figure it out. What would be the correct notation? I'm guessing I need to let it know "homebridge -I" is one piece, but I'm assuming I can't use quotation marks within quotation marks like this:
su - pi -c "screen -dm -S hbscreen "homebridge -I""
\".-Imakes everything run fine, but I need the-Ifor additional features.