Browse Source

Provide a dispatcher script for NetworkManager. Closes: #1054047

Christoph Biedl 5 months ago
parent
commit
f0f1efaa1d
1 changed files with 9 additions and 0 deletions
  1. 9 0
      debian/usr/lib/NetworkManager/dispatcher.d/aoe

+ 9 - 0
debian/usr/lib/NetworkManager/dispatcher.d/aoe

@@ -0,0 +1,9 @@
+#!/bin/sh
+
+# Run aoe-discover if a device different from lo is brought up.
+# This might be restricted to ethernet interfaces, on the other hand,
+# aoe-discover is pretty cheap.
+
+if [ "${1-}" != 'lo' ] && [ "${2-}" = 'up' ]; then
+    aoe-discover
+fi