/etc/functions.sh => /lib/functions.sh
SVN-Revision: 32062
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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."
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
export HOTPLUG_TYPE="$1"
|
||||
|
||||
. /etc/functions.sh
|
||||
. /lib/functions.sh
|
||||
|
||||
PATH=/bin:/sbin:/usr/bin:/usr/sbin
|
||||
LOGNAME=root
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# (C) 2008 openwrt.org
|
||||
|
||||
. /etc/functions.sh
|
||||
. /lib/functions.sh
|
||||
ACTION=$1
|
||||
NAME=$2
|
||||
do_led() {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# Copyright (C) 2006 OpenWrt.org
|
||||
|
||||
. /etc/functions.sh
|
||||
. /lib/functions.sh
|
||||
|
||||
usage() {
|
||||
cat <<EOF
|
||||
|
||||
Reference in New Issue
Block a user