}
include() {
- for file in $(ls /lib/$1/*.sh 2>/dev/null); do
+ for file in $(ls $1/*.sh 2>/dev/null); do
. $file
done
}
# Copyright (C) 2006 OpenWrt.org
-include network
+include /lib/network
addif() {
scan_interfaces
setup_switch() { return 0; }
. /etc/functions.sh
-include network
+include /lib/network
setup_switch
/sbin/wifi
[ $# = 0 ] && { echo " $0 <group>"; exit; }
. /etc/functions.sh
-include network
+include /lib/network
scan_interfaces
cfg=$1
}
config_load wireless
-include wifi
+include /lib/wifi
for device in $DEVICES; do (
config_get iftype "$device" type
#!/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"