summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/base-files/files/lib/functions/boot.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/base-files/files/lib/functions/boot.sh b/package/base-files/files/lib/functions/boot.sh
index f93eec99a..91ab9306e 100644
--- a/package/base-files/files/lib/functions/boot.sh
+++ b/package/base-files/files/lib/functions/boot.sh
@@ -98,3 +98,16 @@ ramoverlay() {
mount -t tmpfs root /tmp/root
fopivot /tmp/root /rom 1
}
+
+pi_include() {
+ if [ -f "/tmp/overlay/$1" ]; then
+ . "/tmp/overlay/$1"
+ elif [ -f "$1" ]; then
+ . "$1"
+ else
+ echo "WARNING: $1 not found"
+ return 1
+ fi
+ return 0
+}
+