Copy dynamic pppoe interfaces

Hi everyone,

I’m trying to make a script that copies all my pppoe interfaces and make them static, so I can monitor them on a Zabbix server. So far I had no success doing it, but I’m not very good with it anyway…

This script should do that only for connections that have not been copied already, so I don’t get duplicity on them.

Can any good soul here give me a hand with this?

Thanks in advance.