summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-04-07 09:50:15 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-04-07 09:50:15 +0000
commite90b69515773b4e176087df0c6cab7cac86e22e4 (patch)
treeb3842b2c7477cfe9fd983776b116338b77ae3ed3
parent1d763171bf7385b2b06f1657bb031bd0212516de (diff)
downloadmtk-20170518-e90b69515773b4e176087df0c6cab7cac86e22e4.zip
mtk-20170518-e90b69515773b4e176087df0c6cab7cac86e22e4.tar.gz
mtk-20170518-e90b69515773b4e176087df0c6cab7cac86e22e4.tar.bz2
/lib/functions.sh: remove pi_include()
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40403
-rwxr-xr-xpackage/base-files/files/lib/functions.sh24
1 files changed, 0 insertions, 24 deletions
diff --git a/package/base-files/files/lib/functions.sh b/package/base-files/files/lib/functions.sh
index e05108c..da5d4a0 100755
--- a/package/base-files/files/lib/functions.sh
+++ b/package/base-files/files/lib/functions.sh
@@ -447,30 +447,6 @@ user_exists() {
}
-pi_include() {
- if [ -f "/tmp/overlay/$1" ]; then
- . "/tmp/overlay/$1"
- elif [ -f "$1" ]; then
- . "$1"
- elif [ -d "/tmp/overlay/$1" ]; then
- if [ -n "$(ls /tmp/overlay/$1/*.sh 2>/dev/null)" ]; then
- for src_script in /tmp/overlay/$1/*.sh; do
- . "$src_script"
- done
- fi
- elif [ -d "$1" ]; then
- if [ -n "$(ls $1/*.sh 2>/dev/null)" ]; then
- for src_script in $1/*.sh; do
- . "$src_script"
- done
- fi
- else
- echo "WARNING: $1 not found"
- return 1
- fi
- return 0
-}
-
boot_hook_splice_start() {
export -n PI_HOOK_SPLICE=1
}