#!/bin/sh
if [ "$ACTION" = ifup ]; then
- . /etc/functions.sh
+ . /lib/functions.sh
INCLUDE_ONLY=1
. /lib/netifd/proto/6in4.sh
# Copyright (c) 2010 OpenWrt.org
[ -n "$INCLUDE_ONLY" ] || {
- . /etc/functions.sh
+ . /lib/functions.sh
. ../netifd-proto.sh
init_proto "$@"
}
#!/bin/sh
if [ "$ACTION" = ifup ]; then
- . /etc/functions.sh
+ . /lib/functions.sh
INCLUDE_ONLY=1
. /lib/netifd/proto/6to4.sh
# Copyright (c) 2010-2012 OpenWrt.org
[ -n "$INCLUDE_ONLY" ] || {
- . /etc/functions.sh
+ . /lib/functions.sh
. ../netifd-proto.sh
init_proto "$@"
}
}
apply_uci_config() {
- sh -c '. /etc/functions.sh; include /lib/config; uci_apply_defaults'
+ sh -c '. /lib/functions.sh; include /lib/config; uci_apply_defaults'
}
start() {
LOGGER="cat"
[ -x /usr/bin/logger ] && LOGGER="logger -s -p 6 -t sysinit"
-. /etc/functions.sh
+. /lib/functions.sh
config_load system
config_foreach system_config system
pi_init_path="/bin:/sbin:/usr/bin:/usr/sbin"
pi_init_cmd="/sbin/init"
-. /etc/functions.sh
+. /lib/functions.sh
. /lib/functions/boot.sh
boot_hook_init preinit_essential
for file in $RAMFS_COPY_BIN; do
install_bin $file
done
- install_file /etc/resolv.conf /etc/functions.sh /lib/functions.sh /lib/upgrade/*.sh $RAMFS_COPY_DATA
+ install_file /etc/resolv.conf /lib/functions.sh /lib/functions.sh /lib/upgrade/*.sh $RAMFS_COPY_DATA
pivot $RAM_ROOT /mnt || {
echo "Failed to switch over to ramfs. Please reboot."
export HOTPLUG_TYPE="$1"
-. /etc/functions.sh
+. /lib/functions.sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin
LOGNAME=root
#!/bin/sh
# (C) 2008 openwrt.org
-. /etc/functions.sh
+. /lib/functions.sh
ACTION=$1
NAME=$2
do_led() {
#!/bin/sh
-. /etc/functions.sh
+. /lib/functions.sh
# initialize defaults
RAMFS_COPY_BIN="" # extra programs for temporary ramfs root
if [ -n "$(rootfs_type)" ]; then
v "Switching to ramdisk..."
- run_ramfs '. /etc/functions.sh; include /lib/upgrade; do_upgrade'
+ run_ramfs '. /lib/functions.sh; include /lib/upgrade; do_upgrade'
else
do_upgrade
fi
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
-. /etc/functions.sh
+. /lib/functions.sh
usage() {
cat <<EOF
# See /LICENSE for more information.
#
-. /etc/functions.sh
+. /lib/functions.sh
reset_block_cb() {
mount_cb() {
#!/bin/sh
-. /etc/functions.sh
+. /lib/functions.sh
. /lib/netifd/netifd-proto.sh
find_3g_iface() {
#!/bin/sh
FW_LIBDIR=/lib/firewall
-. /etc/functions.sh
+. /lib/functions.sh
. ${FW_LIBDIR}/fw.sh
case "$(type fw)" in
[ "$DEVICE" == "lo" ] && exit 0
-. /etc/functions.sh
+. /lib/functions.sh
. /lib/firewall/core.sh
fw_init
#!/bin/sh
-. /etc/functions.sh
+. /lib/functions.sh
if [ "$ACTION" != "ifup" ]; then
exit
[ "$DSL_NOTIFICATION_TYPE" = "DSL_INTERFACE_STATUS" ] || exit 0
-. /etc/functions.sh
+. /lib/functions.sh
include /lib/network
scan_interfaces
#!/bin/sh
[ -z "$1" ] && echo "Error: should be run by udhcpc" && exit 1
-. /etc/functions.sh
+. /lib/functions.sh
. /lib/netifd/netifd-proto.sh
set_classless_routes() {
#!/bin/sh
-. /etc/functions.sh
+. /lib/functions.sh
. ../netifd-proto.sh
init_proto "$@"
fi
if [ -n "$setup_wifi" ] && grep -q config /etc/config/wireless; then
- . /etc/functions.sh
+ . /lib/functions.sh
find_related_radios() {
local wdev wnet
[ -x /usr/sbin/pppd ] || exit 0
[ -n "$INCLUDE_ONLY" ] || {
- . /etc/functions.sh
+ . /lib/functions.sh
. ../netifd-proto.sh
init_proto "$@"
}
#!/bin/sh
-. /etc/functions.sh
+. /lib/functions.sh
. ../netifd-proto.sh
init_proto "$@"
#!/bin/sh
# Copyright (C) 2011 OpenWrt.org
-. /etc/functions.sh
+. /lib/functions.sh
include /lib/network
#!/bin/sh
-[ -e /etc/functions.sh ] && . /etc/functions.sh || . ./functions.sh
+[ -e /lib/functions.sh ] && . /lib/functions.sh || . ./functions.sh
[ -x /sbin/modprobe ] && {
insmod="modprobe"
rmmod="$insmod -r"