aboutsummaryrefslogtreecommitdiffstats
path: root/testing/openvswitch/ovs-modules.initd
blob: 204348d735043e6dfec519edb20715f56ea00da7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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 $?
}