summaryrefslogtreecommitdiff
path: root/testing/ovn/ovs-modules.initd
diff options
context:
space:
mode:
Diffstat (limited to 'testing/ovn/ovs-modules.initd')
-rw-r--r--testing/ovn/ovs-modules.initd20
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/ovn/ovs-modules.initd b/testing/ovn/ovs-modules.initd
new file mode 100644
index 00000000000..e6695ac3ccf
--- /dev/null
+++ b/testing/ovn/ovs-modules.initd
@@ -0,0 +1,20 @@
+#!/sbin/openrc-run
+
+MODULES="openvswitch"
+
+depend() {
+ before ovsdb-server
+}
+
+start() {
+ ebegin "Loading Openvswitch kernel modules"
+ for mod in $MODULES; do
+ modprobe -q $mod
+ done
+ eend $?
+}
+
+stop() {
+ # modules cannot be removed without a reboot
+ return 0
+}