#!/bin/bash

set -eu

source custom/paths.sh

dynamic_config_xml_content=$(busctl call com.lightware.network.ethernetLayer /com/lightware/network/ethernetLayer com.lightware.network.ethernetLayer.Config GetDynamicConfig | sed -E 's/s "(.*)"/\1/g')

printf "${dynamic_config_xml_content}" | setman-backup "ethernetSettings" dynamic_config.xml
