diff options
Diffstat (limited to 'testing/openvswitch/ovs-modules.initd')
-rw-r--r-- | testing/openvswitch/ovs-modules.initd | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/openvswitch/ovs-modules.initd b/testing/openvswitch/ovs-modules.initd new file mode 100644 index 0000000000..204348d735 --- /dev/null +++ b/testing/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 $? +} + |