Last active
January 9, 2019 11:30
-
-
Save Eightyplus/0992c15b937af27745e7ad3df219ea56 to your computer and use it in GitHub Desktop.
raspberry pi starting tvservice based on connected devices
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# edit /etc/rc.local | |
wifi_loaded=`dmesg | grep "ieee80211"` | |
if [ -n "$wifi_loaded" ]; then | |
/usr/bin/tvservice -o | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
or something like