]> git.ipfire.org Git - people/stevee/network.git/commitdiff
port: ethernet: Use default hook_new() function
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 20 Sep 2018 22:04:44 +0000 (23:04 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 20 Sep 2018 22:04:44 +0000 (23:04 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/hooks/ports/ethernet

index 78790e2c21e98c7f0f4d69fb9be8dece366982df..2beffea1b5aa03cb3fe919d23db1ff2803307958 100644 (file)
@@ -70,19 +70,6 @@ hook_parse_cmdline() {
        done
 }
 
-hook_new() {
-       local port=${1}
-       assert isset port
-       shift
-
-       ADDRESS=""
-       DEVICE=$(device_get_address ${port})
-
-       port_settings_write "${port}" ${HOOK_SETTINGS}
-
-       exit ${EXIT_OK}
-}
-
 hook_up() {
        local port="${1}"