I am writing a bash script to change MAC (Ethernet) address back to default one after changing it. In order to match the default value and the current value, the script needs the default value. However I am not sure where to store the default MAC address. Currently The address is hard-coded and stored in the script
MAC=**:**:**:**:**
It doesn't seem appropriate to hardcode like this for security purposes, but retrieving default MAC address seems pretty hard because the MAC address has already changed to another value.
Possible solution is to store it in another file or some other places. Are there any ideas to solve without hardcoding it?