]> git.proxmox.com Git - openvswitch.git/blame - pvepatches/fix-init-script-patch
use LOG_CONS for syslog
[openvswitch.git] / pvepatches / fix-init-script-patch
CommitLineData
dbdf1e31
DM
1Index: new/debian/openvswitch-switch.init
2===================================================================
3--- new.orig/debian/openvswitch-switch.init 2013-12-18 07:59:19.000000000 +0100
4+++ new/debian/openvswitch-switch.init 2013-12-18 09:16:04.138935573 +0100
5@@ -85,17 +85,14 @@
6
7 if [ -e /sys/module/openvswitch ]; then
8 LOADED_SRCVERSION=`cat /sys/module/openvswitch/srcversion`
9- LOADED_VERSION=`cat /sys/module/openvswitch/version`
10 elif [ -e /sys/module/openvswitch_mod ]; then
11 LOADED_SRCVERSION=`cat /sys/module/openvswitch_mod/srcversion`
12- LOADED_VERSION=`cat /sys/module/openvswitch_mod/version`
13 fi
14 SRCVERSION=`modinfo -F srcversion openvswitch 2>/dev/null`
15- VERSION=`modinfo -F version openvswitch 2>/dev/null`
16
17 ovs_ctl_log "Package upgrading:\n"\
18- "Loaded version: ${LOADED_VERSION} ${LOADED_SRCVERSION}.\n"\
19- "Version on disk: ${VERSION} ${SRCVERSION}."
20+ "Loaded version: ${LOADED_SRCVERSION}.\n"\
21+ "Version on disk: ${SRCVERSION}."
22
23 # If the kernel module was previously loaded and it is different than
24 # the kernel module on disk, then do a 'force-reload-kmod'.