ramips: move ramips_get_mac_* functions to lib/ramips.sh