Typo fix (suceed -> succeed)
Merge pull request #7 from ivoks/master

Typo fix
Add Ubuntu packaging to the upstream source.
For Ubuntu, allow the package to manage certain aspects, such as
Upstart job installation. This patch introduces the idea of the script
running from a package (i.e. .deb or .rpm) or being run stand-alone.
Made the detection of whether or not it packaged more robust.
Merge pull request #8 from utlemming/master

Ubuntu Packaging
Changelog - minor updates
Update version string
Changes to logging subsystem:

Duplicate normal logging to /dev/console.  This to support serial logging from boot when console=/dev/ttys0 is set in the kernel boot options.
Add Error logging to all non-shell based operations without it.
Force verbose logging to local log file only.
Changes to improve logging of errors.  Normalization of shell commands on subprocess

Capture all system command output if an error has occurred.
Remove dependence on commands module.
Replace all appropriate calls to os.system() and os.popen to subprocess module.
Detect and back-port subprocess.check_call if missing in python 2.6 subprocess.
Re-implement Run() to use subprocess.check_call.
Add chk_err boolean flag to Run() to ignore logging the error if the error is possibly expected or non-interesting.
Replaced RunSafe with RunGetOutput()
Added RunSendStdin() to support shell command requiring data written to STDIN.
Update changelog
Add RPM packaging information
Update Changelog
WALinuxAgent-1.3.1
install files into destination dir

This change allows to call waagent -install from %install phase of rpm
build. Normally rpmbuild does not run as root, so it cannot install
files to root (/), so it install files into build root defined by
RPM_BUILD_ROOT variable.

So when such variable is defined, fakeroot changes the paths, so they
belongs to RPM_BUILD_ROOT. If is not defined, Install() behaves like
before.
Fix SUSE init script

 * require the $remote_fs facility, we have files in /usr
 * add Short-Description for LSB compatibility
add post command

Part of Install() has to be moved to special function, because
it touched the system and one needs a root for that. So new Post() /
-post is introduced.

In order to maintain a backward compatibility, the Post() is called from
Install() if user's euid is 0. Otherwise it prints a warning about a
need to call waagent -post as root.
add preun command

This reverts changes made by -pre command. Called by Uninstall().
skip most of the Install() during rpm build

During a build of rpm, many parts of Install() are useless, so when
RPM_BUILD_ROOT variable is defined, skip

 * depenency checking - this is rpm's job
 * don't start init script - this is rpm's job
 * don't touch config file
 * don't change the directory ownership in CreateDir() call
drop the NUMA workaround

this is pointless on SLE-11-SP2 with kernel 3.0.13 - now we are sure
waagent -post don't do nasty things with grub settings