]> git.ipfire.org Git - network.git/commitdiff
dummy: Actually bring up the port.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 23 Sep 2012 19:22:46 +0000 (19:22 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 23 Sep 2012 19:22:46 +0000 (19:22 +0000)
hooks/ports/dummy

index ff430c0ae5421317a9106538ec4b918a4f86944a..bfd0e5060ae2028205ab9c8bb9ff1169ba18e0fc 100755 (executable)
@@ -90,6 +90,9 @@ function _up() {
                dummy_create ${port} "${ADDRESS}"
        fi
 
+       # Bring up the port.
+       device_set_up ${port}
+
        exit ${EXIT_OK}
 }
 
@@ -101,6 +104,10 @@ function _down() {
                exit ${EXIT_OK}
        fi
 
+       # Tear down the port.
+       device_set_down ${port}
+
+       # Remove the dummy port.
        dummy_remove ${port}
 
        exit ${EXIT_OK}