diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-10-09 16:06:12 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-10-09 16:06:12 +0000 |
commit | c2fa69955ac724d03c7c50f155e1a2dabc125c3c (patch) | |
tree | 0f13926716058c7d6243a393db5b225b7379d25e /main/openvswitch/ovs-modules.initd | |
parent | 0012ba7c5165d1d8bb45beaa0df24176a8c250c5 (diff) | |
download | aports-c2fa69955ac724d03c7c50f155e1a2dabc125c3c.tar.bz2 aports-c2fa69955ac724d03c7c50f155e1a2dabc125c3c.tar.xz |
main/openvswitch: move from testing
Diffstat (limited to 'main/openvswitch/ovs-modules.initd')
-rw-r--r-- | main/openvswitch/ovs-modules.initd | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/main/openvswitch/ovs-modules.initd b/main/openvswitch/ovs-modules.initd new file mode 100644 index 0000000000..204348d735 --- /dev/null +++ b/main/openvswitch/ovs-modules.initd @@ -0,0 +1,25 @@ +#!/sbin/runscript + +MODULES="openvswitch" + +depend() { + before ovsdb-server +} + + +start() { + ebegin "Loading Openvswitch kernel modules" + for mod in $MODULES; do + modprobe -q $mod + done + eend $? +} + +stop() { + ebegin "Unloading Openvswitch kernel modules" + for mod in $MODULES; do + rmmod $mod + done + eend $? +} + |