summaryrefslogtreecommitdiff
path: root/meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-load-ip.service
diff options
context:
space:
mode:
authorWilliam A. Kennington III <wak@google.com>2022-05-17 02:19:11 +0300
committerWilliam A. Kennington III <wak@google.com>2022-05-27 02:02:20 +0300
commit37e6f396313e8b4b9c7827fbdcce259b97a37184 (patch)
treef3daa65c3f20a1c1aa5ec389401710597d0efeef /meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-load-ip.service
parent757cba278a0aa5fa95f38ac80950e5d055e4b224 (diff)
downloadopenbmc-37e6f396313e8b4b9c7827fbdcce259b97a37184.tar.xz
meta-google: gbmc-bridge: Rework IP address persistence
This consolidates all of the mechanisms which write out a persistent IP into a single place. It also transitions to writing a very simple persistent file instead of systemd style network units. Change-Id: Ib99d7646178d2c5383cf23b09248bf24544c1d9e Signed-off-by: William A. Kennington III <wak@google.com>
Diffstat (limited to 'meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-load-ip.service')
-rw-r--r--meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-load-ip.service9
1 files changed, 9 insertions, 0 deletions
diff --git a/meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-load-ip.service b/meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-load-ip.service
new file mode 100644
index 0000000000..51c68eb175
--- /dev/null
+++ b/meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-load-ip.service
@@ -0,0 +1,9 @@
+[Unit]
+Before=gbmc-ip-monitor.service
+Before=systemd-networkd.service
+
+[Service]
+ExecStart=/bin/bash -c 'source /usr/share/gbmc-br-lib.sh && gbmc_br_reload_ip'
+
+[Install]
+WantedBy=multi-user.target