Squashed commit of the following:

commit e6807bdc2e39c40c6a53538e06ad14f8efcda798
Author: David Ng <dave@codeaurora.org>
Date:   Thu Aug 23 20:40:33 2012 -0700

    init: Add support for properties expansion in exec command

    Add Android properties expansion to 'exec' arguments.
    E.g.  exec /system/bin/log ${sys.usb.config}

    CRs-Fixed: 390942
    Change-Id: Ie520396d951e578bd9f591734a45d2f460b8f51d

commit a070d0075adf9da021a1d5450a38f1998bb69462
Author: David Ng <dave@codeaurora.org>
Date:   Wed Jan 4 12:15:11 2012 -0800

    init: Add "export_rc" command to export env from a specified file

    New export_rc command to import environment variables from
    a specified file at the time the command is executed.

    Differences between "import" and "export_rc":
    1) export_rc can only import environment vars
    2) export_rc is performed when the command
       is executed rather than at the time the
       command is parsed (i.e. "import")

    Example:
    in /init.rc:
        on post-fs
            export_rc /system/etc/init.xyz.rc

    in /system/etc/init.xyz.rc:
        export LD_PRELOAD /system/lib/libxyz.so

    Change-Id: If616dea5b508c27e9f7a95b5e9db696ecea2fdee

commit 5ac1996f26c0f89b50e684b82b3a54c5bf592e6d
Author: Andrew Dodd <atd7@cornell.edu>
Date:   Mon Jun 18 21:19:19 2012 -0400

    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

commit 3cab0144a3f784dedc7046edc1361f366ffba2bf
Author: Lars Svensson <lars1.svensson@sonyericsson.com>
Date:   Thu Jul 14 13:39:09 2011 +0200

    init: Add noexec mount option

    Change-Id: Ic13d66797a86d38432e79af0c3387ce986d0a19f

commit b53478b1fde4d673dce95481adbe35de55b2ba74
Author: Mike Kasick <mike@kasick.org>
Date:   Mon Feb 6 10:32:34 2012 -0500

    init: Don't confuse do_exec with other exiting processes.

    The waitpid call in do_exec may return early with EINTR when init receives
    a signal, e.g., a SIGCHLD from an exiting service process.  do_exec should
    check waitpid for an EINTR "error", to ensure that it returns only after
    waiting on its child process.

commit 62d7cb8deb2dd8422086c746b6b7c1a4ac5b4b6f
Author: Emilio López <turl@tuxfamily.org>
Date:   Wed Nov 16 02:38:32 2011 +0000

    init: Implement exec support

    Code copied from CM7 implementation by Steve Kondik

    Change-Id: Ie8f11e9dc9e552aa7a4fe354995daaf8f0d99a11

commit d48915151e7769727b4d97750abf52150fd17f84
Author: Steve Kondik <shade@chemlab.org>
Date:   Tue Sep 11 20:10:38 2012 -0700

    rootdir: Update cpufreq permissions when governor changes

     * Requires a kernel change to send the uevent.
     * This should alleviate some frustration that the performance/kernel
       folks have expressed regarding the Power HAL.

    Change-Id: I31e6e13534159214a3b600082b7c0e4249433364

commit 68893de2193c9aacf993fec4ba2856197ee236d5
Author: Alex Yakavenka <ayakav@codeaurora.org>
Date:   Mon Nov 14 17:25:04 2011 +0900

    Add required permissions and files for data

     - Add /data/radio
     - Set gateway property after DNS
     - Allow radio users to set properties associated with
       all rmnet interfaces. Not just rmnet0

    Change-Id: Ia60fcb8f90aa73ffd40e839b93356ee50a9e5072

commit 5f5a0c08fe5f1a8c1373823fbbce43a052ef684a
Author: nuclearmistake <nuclearmistake@gmail.com>
Date:   Tue Sep 18 07:31:42 2012 -0400

    Something dalvik-cache related I stole from aokp's github while chasing down a missing directory that's being mkdired but wasn't in my /mnt :-(

    Change-Id: I6af071d1eb479ad51eb7a89cbfbfc8ba18f40ca5

commit 55d538872a5569425f7428c7db2fd5e291069a1d
Author: PrimeDirective <activethrasher00@gmail.com>
Date:   Sun Sep 16 21:31:57 2012 -0400

    reduce klog level in charger.c. not needed.

    Change-Id: I67a19b647714596548d9a0b07ea1bafc58a6826e

commit 9b91f05652ddde975a67b04a1741715a8b7fd5d1
Author: PrimeDirective <activethrasher00@gmail.com>
Date:   Sun Sep 16 21:24:02 2012 -0400

    rework init.rc slightly. approved with remove redundancies from init.d and sysctl review

    Change-Id: Idcd128a7bcf48125f0aa7ffc2d4152fd71434e92

Change-Id: I9c4cf19d1d963419e714a0ccc3f73c46303428c2