Displaying 8 results from an estimated 8 matches for "add_if_not_exist".
2009 Jul 10
2
[PATCH: node 0/3] replace ovirt-identify-node with matahari
This patchset removes ovirt-identify-node and ovirt-listen awake.
It adds startup script support for the matahari qmf agent, which takes
over the responsibility for communicating node hardware capabilities
to the ovirt-server.
On the server side, host-browser has had its node identification
functionality replaced by a new script, host-register, which is what
interfaces with the matahari qmf agent
2009 Jul 08
1
[PATCH: ovirt-identify-node replacement 0/4] ovirt node patch to replace ovirt-identify-node with matahari qmf agent
The purpose of this patch is to add support for the matahari qmf agent
package (http://git.et.redhat.com/?p=matahari.git;a=summary) to the node.
The following actions are taken:
1. Deprecate ovirt-identify-node and ovirt-listen-awake by removing
them from the autotools scripts, the rpm spec and the node startup scripts.
2. Remove ovirt-listen-awake and ovirt-identify-node completely.
3. Add
2010 Jan 14
0
[PATCH] Presents duplicate DNS and NTP server entries.
...printf "${REPLY} is an invalid address.\n"
fi
- done
+ done
fi
fi
}
diff --git a/scripts/ovirt-functions b/scripts/ovirt-functions
index 6435387..0d47dc8 100644
--- a/scripts/ovirt-functions
+++ b/scripts/ovirt-functions
@@ -598,6 +598,13 @@ add_if_not_exist() {
|| echo "$string" >> "$file"
}
+# $1 - the string to be trimmed
+trim_whitespace () {
+ local text=${1}
+
+ printf "$text" | awk '{gsub(/^[ ]*/,"",$0); gsub(/[ ]*$/,"",$0) ; print }'
+}
+
is_numeric() {
prin...
2010 Jan 14
1
Ignore that last patch...
The first line of the comment had a typo in it.
2010 Mar 24
1
Resending a refactored patch...
This was an older patch that had to be rebased against the current
tip.
2010 Mar 24
1
Supercedes previous patch...
This includes a missed break and two spots where $ADDRESS was copied
as $address instead.
2010 Jan 18
1
Refactored patch...
This patch supercedes the previous and includes fixes based on feedback
from apevec. Duplicate checks now check the whole address, so substrings
won't cause false positives.
2010 Jan 18
1
Fixed a karg issue...
I missed one situation in the last patch. It wasn't properly handling
the karg for NTP. This patch fixes that.