diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-09-26 15:32:33 -0300 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-09-27 19:10:10 +0000 |
commit | dd760a2e75142236bf9714959f2e33fb9a499b02 (patch) | |
tree | 246b2114b4c2270e921e80a0731245538682462e /community/openvswitch/ovs-modules.initd | |
parent | 78ccc0c8c955f00de53ba262061fba2ff6da676d (diff) | |
download | aports-dd760a2e75142236bf9714959f2e33fb9a499b02.tar.bz2 aports-dd760a2e75142236bf9714959f2e33fb9a499b02.tar.xz |
community/openvswitch: move from main
Closes !154
Diffstat (limited to 'community/openvswitch/ovs-modules.initd')
-rw-r--r-- | community/openvswitch/ovs-modules.initd | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/community/openvswitch/ovs-modules.initd b/community/openvswitch/ovs-modules.initd new file mode 100644 index 0000000000..e6695ac3cc --- /dev/null +++ b/community/openvswitch/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 +} |