You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
772 B
18 lines
772 B
# This is a functions file. You can use this kind of files to share code between satellites.
|
|
|
|
# You define a function here, and it becomes available in any script that imports it.
|
|
say_hello() {
|
|
# Any function or variable that shouldn't be seen by the satellite is prefixed with "_func_"
|
|
_func_tmp="Hello, there!"
|
|
echo "Function ran! $_func_tmp"
|
|
}
|
|
|
|
# Any hook is prefixed with "_hook_"
|
|
_hook_hello() {
|
|
echo "The hook ran at header_end!"
|
|
}
|
|
|
|
# This is a space-separated list of all the hooks.
|
|
_hooks="_hook_hello"
|
|
# Hooks are functions with code that is run at header_end, regardless if you're in download-only mode. So don't go messing in the build directory here.
|
|
# This is purely to set variables (like update_url), maybe download code, or something else.
|
|
|