Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
# Save the MAC address of the remote DSLAM
if isset PPP_MACREMOTE; then
- db_set "${zone}/${proto}/remote-address" "${PPP_MACREMOTE,,}"
+ db_set "${zone}/remote-address" "${PPP_MACREMOTE,,}"
fi
}
# XXX display time since connection started
cli_headline 2 "Point-to-Point-over-Ethernet protocol"
+ cli_print_fmt1 2 "MAC-Remote" "$(db_get "${zone}/remote-address")"
+ cli_space
+
local proto
for proto in ${IP_SUPPORTED_PROTOCOLS}; do
db_exists "${zone}/${proto}" || continue
cli_print_fmt1 3 "Gateway" "$(db_get "${zone}/${proto}/remote-ip-address")"
cli_print_fmt1 3 "DNS servers" "$(db_get "${zone}/${proto}/domain-name-servers")"
cli_space
- cli_print_fmt1 3 "MAC-Remote" "$(db_get "${zone}/${proto}/remote-address")"
- cli_space
done
exit ${EXIT_OK}