Skip to content

Commit

Permalink
/lib/functions.sh: remove pi_include()
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Fietkau <[email protected]>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40403 3c298f89-4303-0410-b956-a3cf2f4a3e73
  • Loading branch information
nbd committed Apr 7, 2014
1 parent 3489fab commit f6235f6
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions package/base-files/files/lib/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit f6235f6

Please sign in to comment.