diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2023-10-25 14:55:44 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2023-10-25 15:02:07 +0000 |
commit | c0183506d8fa469633e5fbbbfdede1848d399de8 (patch) | |
tree | 5a8f95a0bd032000f456cadaa271ac3f3802515c /testing/ovn/ovs-modules.initd | |
parent | 3775f4da5771cc971b184acfff1ea074dfa956eb (diff) | |
download | aports-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.initd | 20 |
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 +} |