[package] /etc/functions.sh => /lib/functions.sh
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 5 Jun 2012 16:04:23 +0000 (16:04 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 5 Jun 2012 16:04:23 +0000 (16:04 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32062 3c298f89-4303-0410-b956-a3cf2f4a3e73

25 files changed:
package/6in4/files/6in4.hotplug
package/6in4/files/6in4.sh
package/6to4/files/6to4.hotplug
package/6to4/files/6to4.sh
package/base-files/files/etc/init.d/boot
package/base-files/files/etc/init.d/rcS
package/base-files/files/etc/preinit
package/base-files/files/lib/upgrade/common.sh
package/base-files/files/sbin/hotplug-call
package/base-files/files/sbin/led.sh
package/base-files/files/sbin/sysupgrade
package/base-files/files/sbin/wifi
package/block-mount/files/block.sh
package/comgt/files/3g.usb
package/firewall/files/bin/fw
package/firewall/files/firewall.hotplug
package/iproute2/files/30-teql
package/ltq-dsl-app/files/dsl_notify.sh
package/netifd/files/lib/netifd/dhcp.script
package/netifd/files/lib/netifd/proto/dhcp.sh
package/netifd/files/sbin/ifup
package/ppp/files/ppp.sh
package/pptp/files/pptp.sh
package/qos-scripts/files/usr/bin/qos-stat
package/qos-scripts/files/usr/lib/qos/generate.sh

index 8d78555..e941798 100644 (file)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 if [ "$ACTION" = ifup ]; then
-       . /etc/functions.sh
+       . /lib/functions.sh
 
        INCLUDE_ONLY=1
        . /lib/netifd/proto/6in4.sh
index 6e433ba..dd43860 100755 (executable)
@@ -3,7 +3,7 @@
 # Copyright (c) 2010 OpenWrt.org
 
 [ -n "$INCLUDE_ONLY" ] || {
-       . /etc/functions.sh
+       . /lib/functions.sh
        . ../netifd-proto.sh
        init_proto "$@"
 }
index 202a3c7..48ac9c1 100644 (file)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 if [ "$ACTION" = ifup ]; then
-       . /etc/functions.sh
+       . /lib/functions.sh
 
        INCLUDE_ONLY=1
        . /lib/netifd/proto/6to4.sh
index c9f97bd..c2e911a 100755 (executable)
@@ -3,7 +3,7 @@
 # Copyright (c) 2010-2012 OpenWrt.org
 
 [ -n "$INCLUDE_ONLY" ] || {
-       . /etc/functions.sh
+       . /lib/functions.sh
        . ../netifd-proto.sh
        init_proto "$@"
 }
index 250bfe0..43837a8 100755 (executable)
@@ -48,7 +48,7 @@ system_config() {
 }
 
 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() {
index 3b80432..3ec9bfe 100755 (executable)
@@ -14,7 +14,7 @@ system_config() {
 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
index 6c6e3b1..0fdfa8c 100755 (executable)
@@ -21,7 +21,7 @@ pi_init_suppress_stderr="y"
 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
index a705d97..0a92aad 100644 (file)
@@ -58,7 +58,7 @@ run_ramfs() { # <command> [...]
        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."
index 0d96e80..d627bec 100755 (executable)
@@ -3,7 +3,7 @@
 
 export HOTPLUG_TYPE="$1"
 
-. /etc/functions.sh
+. /lib/functions.sh
 
 PATH=/bin:/sbin:/usr/bin:/usr/sbin
 LOGNAME=root
index 44629d9..d67a0f5 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # (C) 2008 openwrt.org
 
-. /etc/functions.sh
+. /lib/functions.sh
 ACTION=$1
 NAME=$2
 do_led() {
index be11c5b..3868dc4 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-. /etc/functions.sh
+. /lib/functions.sh
 
 # initialize defaults
 RAMFS_COPY_BIN=""      # extra programs for temporary ramfs root
@@ -169,7 +169,7 @@ kill_remaining KILL
 
 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
index 5cbf50b..8528efe 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Copyright (C) 2006 OpenWrt.org
 
-. /etc/functions.sh
+. /lib/functions.sh
 
 usage() {
        cat <<EOF
index ac8ca3b..2b679a8 100644 (file)
@@ -4,7 +4,7 @@
 # See /LICENSE for more information.
 #
 
-. /etc/functions.sh
+. /lib/functions.sh
 
 reset_block_cb() {
        mount_cb() { 
index d3859c2..1dabc0c 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh
-. /etc/functions.sh
+. /lib/functions.sh
 . /lib/netifd/netifd-proto.sh
 
 find_3g_iface() {
index 0f83b8e..5d20cc8 100644 (file)
@@ -1,7 +1,7 @@
 #!/bin/sh
 FW_LIBDIR=/lib/firewall
 
-. /etc/functions.sh
+. /lib/functions.sh
 . ${FW_LIBDIR}/fw.sh
 
 case "$(type fw)" in
index 720b34c..52e7798 100644 (file)
@@ -6,7 +6,7 @@
 
 [ "$DEVICE" == "lo" ] && exit 0
 
-. /etc/functions.sh
+. /lib/functions.sh
 . /lib/firewall/core.sh
 
 fw_init
index 231c09f..a0c0e50 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-. /etc/functions.sh
+. /lib/functions.sh
 
 if [ "$ACTION" != "ifup" ]; then
        exit
index f440450..5e9f396 100644 (file)
@@ -9,7 +9,7 @@
 
 [ "$DSL_NOTIFICATION_TYPE" = "DSL_INTERFACE_STATUS" ] || exit 0
 
-. /etc/functions.sh
+. /lib/functions.sh
 
 include /lib/network
 scan_interfaces
index d13ce7e..0097a96 100755 (executable)
@@ -1,7 +1,7 @@
 #!/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() {
index 4bdb3a7..1080dbf 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-. /etc/functions.sh
+. /lib/functions.sh
 . ../netifd-proto.sh
 init_proto "$@"
 
index e17b67d..0d2a3ca 100755 (executable)
@@ -51,7 +51,7 @@ else
 fi
 
 if [ -n "$setup_wifi" ] && grep -q config /etc/config/wireless; then
-       . /etc/functions.sh
+       . /lib/functions.sh
 
        find_related_radios() {
                local wdev wnet
index c516691..297a329 100755 (executable)
@@ -3,7 +3,7 @@
 [ -x /usr/sbin/pppd ] || exit 0
 
 [ -n "$INCLUDE_ONLY" ] || {
-       . /etc/functions.sh
+       . /lib/functions.sh
        . ../netifd-proto.sh
        init_proto "$@"
 }
index 911e0aa..e2e4729 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-. /etc/functions.sh
+. /lib/functions.sh
 . ../netifd-proto.sh
 init_proto "$@"
 
index 8a39df0..78d1638 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Copyright (C) 2011 OpenWrt.org
 
-. /etc/functions.sh
+. /lib/functions.sh
 
 include /lib/network
 
index bb1d7ed..440b43f 100755 (executable)
@@ -1,5 +1,5 @@
 #!/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"