May 2017
Beginner to intermediate
470 pages
10h 49m
English
The action syntax is as follows:
on <trigger> <command> <command> <command> ...
Actions begin with the keyword on, followed by a trigger. Actions are left-aligned and the commands that follow are indented, as shown in the preceding snippet.
For example, we mount all partitions for the emulator using fstab.goldfish on trigger fs:
on fs mount_all /fstab.goldfish
Triggers are strings that can be used to match certain kinds of event and they are used to cause an action to occur. There are two types of action triggers: predefined triggers and triggers activated on property-value changes.
Predefined triggers could be early-init, init, early-fs, fs, post-fs, early-boot, or boot as defined in the init scripts.
Property-value triggers ...
Read now
Unlock full access