summaryrefslogtreecommitdiff
path: root/openwrt/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
commitda625de806a3e4a4a4986caedf8fbd2c4d3f1e75 (patch)
treeb17cf5de9ee6069544fcc3e86874e1518d983445 /openwrt/package/base-files/default/etc/functions.sh
parent643cdb2818568429c07c79a445527eaee673130a (diff)
downloadmtk-20170518-da625de806a3e4a4a4986caedf8fbd2c4d3f1e75.zip
mtk-20170518-da625de806a3e4a4a4986caedf8fbd2c4d3f1e75.tar.gz
mtk-20170518-da625de806a3e4a4a4986caedf8fbd2c4d3f1e75.tar.bz2
use absolute paths in include() shell function
SVN-Revision: 4852
Diffstat (limited to 'openwrt/package/base-files/default/etc/functions.sh')
-rwxr-xr-xopenwrt/package/base-files/default/etc/functions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/openwrt/package/base-files/default/etc/functions.sh b/openwrt/package/base-files/default/etc/functions.sh
index 27b0a6d..ce22ed1 100755
--- a/openwrt/package/base-files/default/etc/functions.sh
+++ b/openwrt/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
}