summaryrefslogtreecommitdiff
path: root/testing/ovn/ovs-modules.initd
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2023-10-25 14:55:44 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2023-10-25 15:02:07 +0000
commitc0183506d8fa469633e5fbbbfdede1848d399de8 (patch)
tree5a8f95a0bd032000f456cadaa271ac3f3802515c /testing/ovn/ovs-modules.initd
parent3775f4da5771cc971b184acfff1ea074dfa956eb (diff)
downloadaports-c0183506d8fa469633e5fbbbfdede1848d399de8.zip
testing/ovn: install more ovs components, add more init scripts
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
+}