mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-01 16:58:22 +00:00
/lib/functions.sh: remove pi_include()
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40403
This commit is contained in:
parent
1d763171bf
commit
e90b695157
@ -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() {
|
boot_hook_splice_start() {
|
||||||
export -n PI_HOOK_SPLICE=1
|
export -n PI_HOOK_SPLICE=1
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user