diff options
author | Stuart Cardall <developer@it-offshore.co.uk> | 2017-11-19 22:07:21 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-11-30 08:27:34 +0000 |
commit | efcf0e4fa1ec88710194bf8e2863f2a9e2d7aa1e (patch) | |
tree | 514af6b475e122bf74614ad04cd2774ec3c2e903 /main/openvswitch/ovs-modules.initd | |
parent | 90eb5fdd0911d6b4198ba7287fd01d716ed63fb3 (diff) | |
download | aports-efcf0e4fa1ec88710194bf8e2863f2a9e2d7aa1e.tar.bz2 aports-efcf0e4fa1ec88710194bf8e2863f2a9e2d7aa1e.tar.xz |
main/openvswitch: fix ovs-modules initd
* openvswitch module cannot be removed without a reboot so do not
unload it
Diffstat (limited to 'main/openvswitch/ovs-modules.initd')
-rw-r--r-- | main/openvswitch/ovs-modules.initd | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/main/openvswitch/ovs-modules.initd b/main/openvswitch/ovs-modules.initd index 86c205428a..e6695ac3cc 100644 --- a/main/openvswitch/ovs-modules.initd +++ b/main/openvswitch/ovs-modules.initd @@ -3,23 +3,18 @@ MODULES="openvswitch" depend() { - before ovsdb-server + before ovsdb-server } - start() { - ebegin "Loading Openvswitch kernel modules" - for mod in $MODULES; do + 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 $? + # modules cannot be removed without a reboot + return 0 } - |