use absolute paths in include() shell function

SVN-Revision: 4852
master
Felix Fietkau 18 years ago
parent 643cdb2818
commit da625de806
  1. 2
      openwrt/package/base-files/default/etc/functions.sh
  2. 2
      openwrt/package/base-files/default/etc/hotplug.d/net/10-net
  3. 2
      openwrt/package/base-files/default/etc/init.d/S40network
  4. 2
      openwrt/package/base-files/default/sbin/ifdown
  5. 2
      openwrt/package/base-files/default/sbin/wifi
  6. 2
      openwrt/package/base-files/default/usr/share/udhcpc/default.script

@ -93,7 +93,7 @@ load_modules() {
} }
include() { include() {
for file in $(ls /lib/$1/*.sh 2>/dev/null); do for file in $(ls $1/*.sh 2>/dev/null); do
. $file . $file
done done
} }

@ -1,6 +1,6 @@
# Copyright (C) 2006 OpenWrt.org # Copyright (C) 2006 OpenWrt.org
include network include /lib/network
addif() { addif() {
scan_interfaces scan_interfaces

@ -4,6 +4,6 @@
setup_switch() { return 0; } setup_switch() { return 0; }
. /etc/functions.sh . /etc/functions.sh
include network include /lib/network
setup_switch setup_switch
/sbin/wifi /sbin/wifi

@ -3,7 +3,7 @@
[ $# = 0 ] && { echo " $0 <group>"; exit; } [ $# = 0 ] && { echo " $0 <group>"; exit; }
. /etc/functions.sh . /etc/functions.sh
include network include /lib/network
scan_interfaces scan_interfaces
cfg=$1 cfg=$1

@ -30,7 +30,7 @@ config_cb() {
} }
config_load wireless config_load wireless
include wifi include /lib/wifi
for device in $DEVICES; do ( for device in $DEVICES; do (
config_get iftype "$device" type config_get iftype "$device" type

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
[ -z "$1" ] && echo "Error: should be run by udhcpc" && exit 1 [ -z "$1" ] && echo "Error: should be run by udhcpc" && exit 1
. /etc/functions.sh . /etc/functions.sh
include network include /lib/network
RESOLV_CONF="/tmp/resolv.conf" RESOLV_CONF="/tmp/resolv.conf"

Loading…
Cancel
Save