Group :: Networking/Other
RPM: openvswitch
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: openvswitch-2.0_alt_fix_function.patch
Download
Download
--- utilities/ovs-lib.in.origin 2013-12-24 13:43:45.000000000 +0200
+++ utilities/ovs-lib.in 2013-12-24 13:47:04.689017686 +0200
@@ -83,24 +83,22 @@ elif test -e /lib/lsb/init-functions; th
. /lib/lsb/init-functions
fi
-# Implement missing functions (e.g. OpenSUSE lacks 'action').
-if type log_success_msg >/dev/null 2>&1; then :; else
- log_success_msg () {
- printf '%s.\n' "$*"
- }
-fi
-if type log_failure_msg >/dev/null 2>&1; then :; else
- log_failure_msg () {
- printf '%s ... failed!\n' "$*"
- }
-fi
-if type log_warning_msg >/dev/null 2>&1; then :; else
- log_warning_msg () {
- printf '%s ... (warning).\n' "$*"
- }
-fi
-if type action >/dev/null 2>&1; then :; else
- action () {
+log_success_msg () {
+ printf '%s' "$*"
+ echo_success
+ echo
+}
+log_failure_msg () {
+ printf '%s' "$*"
+ echo_failure
+ echo
+}
+log_warning_msg () {
+ printf '%s' "$*"
+ echo_passed
+ echo
+}
+action () {
STRING=$1
shift
"$@"
@@ -111,8 +109,7 @@ if type action >/dev/null 2>&1; then :;
log_failure_msg "$STRING"
fi
return $rc
- }
-fi
+}
## ------- ##
## Daemons ##