system: fix deprecated warning
system: fix deprecated warning

PR: https://forum.opnsense.org/index.php?topic=23822.0

opnsense/core,opnsense/core,opnsense/core,opnsense/core,opnsense/core,opnsense/core