aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/default/etc/functions.sh
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-09-24 13:32:18 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-09-24 13:32:18 +0000
commit57c6e6b156f6e37071ca2e0c06d5794ed032d1cc (patch)
tree9b739c6907465a7b5413e56f44266afa6bf2a771 /package/base-files/default/etc/functions.sh
parent732e5d38374397673c861f49a1222280bcd1617a (diff)
downloadmaster-187ad058-57c6e6b156f6e37071ca2e0c06d5794ed032d1cc.tar.gz
master-187ad058-57c6e6b156f6e37071ca2e0c06d5794ed032d1cc.tar.bz2
master-187ad058-57c6e6b156f6e37071ca2e0c06d5794ed032d1cc.zip
use absolute paths in include() shell function
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4852 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/default/etc/functions.sh')
-rwxr-xr-xpackage/base-files/default/etc/functions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/default/etc/functions.sh b/package/base-files/default/etc/functions.sh
index 27b0a6d5fc..ce22ed151c 100755
--- a/package/base-files/default/etc/functions.sh
+++ b/package/base-files/default/etc/functions.sh
@@ -93,7 +93,7 @@ load_modules() {
}
include() {
- for file in $(ls /lib/$1/*.sh 2>/dev/null); do
+ for file in $(ls $1/*.sh 2>/dev/null); do
. $file
done
}