I need to stop now. Lost a lot of hashing time on this.
As it is today this build will not mine on Dwarfpool
You have "." instead of "/"
You have typo for $My_Rig
And from what I can see the entire sections for enable and disable are backwards for Dwarfpool.
And something is very wrong concerning the proper switches for Dwarfpool (-F -G works on 8 rigs but not this build)
I suggest modifying this script further to accommodate multiple pools instead of just one.
I'm sure you can work it out or I might try later to change it.
In the meanwhile its back to Windows for me.
Good luck

TQ for the recommendation, I will have a look on it.
By the way, Here the screen capture that I using XMOS V2.0 Mining on Dwarfpool using "Stratum Proxy v0.0.5 by dwarfpool" setting STRATUMPROXY="enable".
Just to share out.
Happy Mining...