mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-04 23:25:01 +02:00
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
This commit is contained in:
parent
85c84eceb3
commit
139dfb16c8
@ -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
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Copyright (C) 2006 OpenWrt.org
|
||||
|
||||
include network
|
||||
include /lib/network
|
||||
|
||||
addif() {
|
||||
scan_interfaces
|
||||
|
@ -4,6 +4,6 @@
|
||||
setup_switch() { return 0; }
|
||||
|
||||
. /etc/functions.sh
|
||||
include network
|
||||
include /lib/network
|
||||
setup_switch
|
||||
/sbin/wifi
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
[ $# = 0 ] && { echo " $0 <group>"; exit; }
|
||||
. /etc/functions.sh
|
||||
include network
|
||||
include /lib/network
|
||||
scan_interfaces
|
||||
|
||||
cfg=$1
|
||||
|
@ -30,7 +30,7 @@ config_cb() {
|
||||
}
|
||||
|
||||
config_load wireless
|
||||
include wifi
|
||||
include /lib/wifi
|
||||
|
||||
for device in $DEVICES; do (
|
||||
config_get iftype "$device" type
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
[ -z "$1" ] && echo "Error: should be run by udhcpc" && exit 1
|
||||
. /etc/functions.sh
|
||||
include network
|
||||
include /lib/network
|
||||
|
||||
RESOLV_CONF="/tmp/resolv.conf"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user