init.rc: Restored TCP performance tuning

This patch tunes the TCP buffer sizes for high
performance data links including global max rmem
and wmem.

Change-Id: I78dc92bc8190883686678230b0a34a8e32507fa5
CRs-Fixed: 439205 435908
init: Allow load of lpm.rc by parsing a cmdline argument

A usage example could be:
BOARD_LPM_BOOT_ARGUMENT_NAME := lpm_boot
BOARD_LPM_BOOT_ARGUMENT_VALUE := 1
Where lpm_boot is the argument to read, and 1 the value of it when kernel says we should enter offline charging mode

Change-Id: I2b073a0968d65ba9e3bf6b397280241c1fb0c0f9
Add support for -R (recurse) to init chown builtin.

This is helpful for setting ownerships on entire directory trees,
such as sysfs and selinuxfs, particularly when the precise set of
files is dynamically generated at runtime.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>

Change-Id: I81070ea36fd7ffcab4ee8b3ef1bb0028d4b7839c
init: uevent: Add msm video symbolic link handling

Create meaningful symbolic links for video encode/decode
devices based on link_name sysfs node so that video client
doesn't have to rely on dynamic dev node names like device32,
device33 etc.

(cherry picked from commit d26280b5d327994c3c89c573de7738b3f47b8600)
(cherry picked from commit c8f57166fadd26648bd9ee0a979a789c944ccba3)
(cherry picked from commit 72e4c35b308270f44795ebcc196319096397c6c1)
(cherry picked from commit aec73795517e7f49c5ebbea611da612b99ba75fb)

Change-Id: Id308a10d3e601616b63ecd1373809c96f0d04435
init: Check for symlinks with lstat() not open()

Using open() with an O_NOFOLLOW flag will result in a file falsely
being determined to be a symlink if the open fails for another
reason.

For example, a character device that isn't ready due to the
underlying hardware not being initialized yet will fail to open()

An example of this are any CG2900 device files prior to
execution of ste-cg29xx_ctrl

This uses lstat() instead of open() with O_NOFOLLOW to check
whether a file is a symlink or not.

Change-Id: Ie0d8d94b426c84c29b1b04d41a4cc15536cb307c
Merge "Add support for -R (recurse) to init chown builtin." into android-4.4
Revert "sdcard: Allow building as a static library"

For some reason (maybe gcc) the sdcard daemon is broken for some devices

I can't reproduce this error but I got some logs below:

from logcat
http://paste.omnirom.org/view/380f6994

from kernel
http://paste.omnirom.org/view/3ebfe137

This reverts commit 1e8b51531e4d9ff356da0c09da4bf2860d523c8c.

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I56b0b8c0b50fdc53101494557c773ce717273bd0
Merge "Revert "sdcard: Allow building as a static library"" into android-4.4
Merge remote-tracking branch 'omni/android-4.4' into defy-4.4