aboutsummaryrefslogtreecommitdiffstats
path: root/main/openvswitch/ovs-modules.initd
blob: 86c205428add1dbd73b39be8431c60c8fdd67486 (plain) (blame)
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/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() {
        ebegin "Unloading Openvswitch kernel modules"
        for mod in $MODULES; do
		rmmod $mod
	done
        eend $?
}