]> git.ipfire.org Git - people/arne_f/network.git/commitdiff
network: Remove deprecated function device_set_mac.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 6 Jun 2010 14:59:33 +0000 (16:59 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 6 Jun 2010 14:59:33 +0000 (16:59 +0200)
functions.device
hooks/bridge

index 03e96011299fbe6e0acc84898ae5b1c7955ec4b0..102c5ceaa494ef5af515f4dea94f62a3a086eebf 100644 (file)
@@ -388,13 +388,6 @@ function device_set_parent_down() {
        return ${EXIT_OK}
 }
 
-# Set new address to a device
-function device_set_mac() {
-       warning_log "Called deprecated function 'device_set_mac'"
-
-       device_set_address $@
-}
-
 function device_get_mtu() {
        local device=${1}
 
@@ -606,7 +599,7 @@ function device_bonding_create() {
        log INFO "Creating bonding device '${device}' (${mac})."
 
        echo "+${device}" > /sys/class/net/bonding_masters
-       device_set_mac ${mac}
+       device_set_address ${mac}
        device_set_up ${device}
 }
 
index 257a12fb66418c652360165e07790da2d4fef7a2..2525c48b368a450fb2d7ab2230f962d61e8eafb5 100755 (executable)
@@ -75,7 +75,7 @@ function _up() {
                brctl addbr ${zone}
        fi
 
-       [ -n "${MAC}" ] && device_set_mac ${zone} ${MAC}
+       [ -n "${MAC}" ] && device_set_address ${zone} ${MAC}
        [ -n "${MTU}" ] && device_set_mtu ${zone} ${MTU} 
 
        # Enable STP