Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new feature: run program on first connection / run program on last
disconnection I was looking to trigger an action when I connect to shairport. Basically, I want to switch on the stereo when I start playing music over shairport (and I want to switch if off when I stop streaming). Because my set-up will be different than any other set-up, I thought about making it generic. Two new command-line options --play_prog and --stop_prog take one argument: the command line to start when the first connection is made or when the last connection quits. Example: $ shairport.pl --play_prog="amixer set PCM 100%"
- Loading branch information