(10-28-2019, 05:43 PM)TheClaw Wrote: Hi and thx for Input,
i found this on a German Forum:
Code:#!/bin/bash
mpc clear
sleep 2
mpc random off
mpc consume off
sleep 2
mpc load "Favorites"
sleep 10
mpc play
exit 0
Added to /etc/network/ip-up.d
It's works manually, but NOT when I restart the Wifi connection. I have no clue
Try with #!/bin/sh instead #!/bin/bash
And chmod 755 on your script.
EDIT: It seems it only work when physical interface is activated (like pluging RJ45 cable, or activating wifi), but not reconnection.
So not good for your need.