January 2018
Intermediate to advanced
456 pages
12h 49m
English
Once the recipe defines an installation script, the class for the specific package type will install it while following the packaging rules of the specific format.
For post-installation scripts, when running on the host, D is set to the destination directory, so the comparison test will fail. But D will be empty when running on the target.
Another common way to test whether a script is running on the device is:
if test -n "$D"; then # Running on host else # Running on target fi
Read now
Unlock full access