mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
[base system & package/block-extroot] Merged 23110-23112 which allows block-extroot to be
loaded as a module rather than being required to be in the image. Thanks JoW for pushing and helping with this. git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@23113 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -291,4 +291,25 @@ service_kill() {
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
pi_include() {
|
||||
if [ -f "/tmp/overlay/$1" ]; then
|
||||
. "/tmp/overlay/$1"
|
||||
elif [ -f "$1" ]; then
|
||||
. "$1"
|
||||
elif [ -d "/tmp/overlay/$1" ]; then
|
||||
for src_script in /tmp/overlay/$1/*.sh; do
|
||||
. "$src_script"
|
||||
done
|
||||
elif [ -d "$1" ]; then
|
||||
for src_script in $1/*.sh; do
|
||||
. "$src_script"
|
||||
done
|
||||
else
|
||||
echo "WARNING: $1 not found"
|
||||
return 1
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
|
||||
[ -z "$IPKG_INSTROOT" -a -f /lib/config/uci.sh ] && . /lib/config/uci.sh
|
||||
|
||||
Reference in New Issue
Block a user