summaryrefslogtreecommitdiffstats
path: root/init/builtins.c
Commit message (Collapse)AuthorAgeFilesLines
...
| * init: builtins: trancate target file in do_copyTom Zhu2009-09-301-1/+1
| | | | | | | | | | | | | | | | add O_TRUNC flag in open(), which will truncate the target file, otherwise, copy will keep the old content of the target file. Signed-off-by: Tom Zhu <ling.zhu@motorola.com> Signed-off-by: San Mehat <san@google.com>
* | merge from open-source masterJean-Baptiste Queru2009-09-011-1/+15
|\ \ | |/ |/|
| * added chdir/chroot commands to init for mount switching/pivotingJay Freeman (saurik)2009-08-271-0/+12
| |
| * Trivial implementation of init's import command.Jay Freeman (saurik)2009-08-271-1/+1
| |
| * completed implementation of "trigger" for initJay Freeman (saurik)2009-08-251-0/+2
| |
| * Merge korg/donut into korg/masterJean-Baptiste Queru2009-07-251-3/+3
| |\
* | | init: builtins: Add 'copy' command to init.rc parserSan Mehat2009-08-261-0/+62
| | | | | | | | | | | | Signed-off-by: San Mehat <san@google.com>
* | | init now returns proper error codes in dmesg for write command (init.rc)Mike Chan2009-06-291-2/+2
| | | | | | | | | | | | Signed-off-by: Mike Chan <mike@android.com>
* | | resolved conflicts w/ f24e252903ca0f71c7fbfb135cf17e83e0c2ea90 merge...San Mehat2009-05-201-3/+3
|\ \ \ | |/ / |/| / | |/
| * init: Add the ability to start services with dynamic arguments.San Mehat2009-05-191-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | To add arguments dynamically to a service, start the service like so: setprop ctl.start service_to_run:arg1 arg2 arg3... To start a service with *no* dynamic arguments, start the service normally: setprop ctl.start service_to_run Dynamic arguments are only supported on 'oneshot' services Signed-off-by: San Mehat <san@google.com>
| * auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+442
| |
| * auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-442/+0
| |
* | Merge commit 'remotes/korg/cupcake'Jean-Baptiste Queru2008-12-191-3/+43
|\ \ | |/ | | | | | | | | | | Conflicts: init/devices.c logwrapper/logwrapper.c mountd/AutoMount.c
| * Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-3/+43
| |
* | Added support for loop@/path/to/filename to init's mount.Jay Freeman (saurik)2008-11-201-5/+61
|/ | | | | | In keeping with the pattern of mtd@partition, I have added loop@path as a way to specify a loopback device. This way you can do things like mount directories in /system using cramfs from a file otherwise on /system (just one example oof how I'm using it). I specifically went with loop@ rather than adding this feature as a flag as the flags system is designed to set bits in the flags argument to mount: using loop@ fit the model in a much simpler manner and actually feels "correct". This is a better version of the previously submitted 4045 that also refactors the mtd@ case. The reason for this is that I received comments that I should check for errors and return errors rather that do work in the case of success and fall through, but the mtd@ case wasn't doing that either and it became awkward to design the function so that it was half in one style of error handling and half in another. I also made certain to use inequality comparisons for Unix's -1 error returns rather than checking for -1, refactored my large if statement so as not to have danling parentheses, and disassocited the loop device on mount failure.
* Initial ContributionThe Android Open Source Project2008-10-211-0/+402