]> git.ipfire.org Git - people/arne_f/network.git/blob - functions.ethernet
network: Add some initialization handlers.
[people/arne_f/network.git] / functions.ethernet
1 #!/bin/bash
2 # XXX header missing
3
4 function ethernet_device_print() {
5 local device=${1}
6
7 printf "${DEVICE_PRINT_LINE1}" "Address:" "$(device_get_address ${device})"
8 printf "${DEVICE_PRINT_LINE1}" "MTU:" "$(device_get_mtu ${device})"
9 }
10
11 function real_device_print() {
12 warning_log "Deprecated function called: real_device_print"
13
14 ethernet_device_print $@
15 }