xenserver: Be compatible with non-XenServer func libraries in init script.
authorBen Pfaff <blp@nicira.com>
Wed, 5 Jan 2011 19:00:41 +0000 (11:00 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 7 Jan 2011 18:31:29 +0000 (10:31 -0800)
commit6f83469de7edcbeb66449b8488d24a6cfbfb0898
tree98add1ec468279332b766b4a732faeb8efe34ed3
parent72dfb3b4c9470ec7aa65483216291b07cc9efca7
xenserver: Be compatible with non-XenServer func libraries in init script.

XenServer has its function library in /etc/init.d/functions but other
distros have it in different places.  Currently this init script is
specifically intended for XenServer but adding compatibility with other
distros seems like a worthwhile goal.

Also, SuSE does not have the "action" function, so test whether it is
implemented and when not supply a fallback.

Signed-off-by: Patrick Mullaney <pm.mullaney@gmail.com>
[changed to only define action() if not already defined]
Signed-off-by: Ben Pfaff <blp@nicira.com>
xenserver/etc_init.d_openvswitch