2 # Copyright (C) 2006 OpenWrt.org
4 alias debug
=${DEBUG:-:}
14 ifconfig
"$1" >&- 2>&- ||
15 [ "${1%%[0-9]}" = "br" ] ||
16 { debug
"# missing interface '$1' ignored"; false
; }
20 env
-i ACTION
=$1 INTERFACE
=$2 /sbin
/hotplug net
27 eval "export ${var}=\"\${${var}:+\${${var}}${value:+$sep}}$value\""
42 name
="${name:-cfg${_C}}"
44 export CONFIG_SECTION
="$2"
45 export CONFIG_
${CONFIG_SECTION}_TYPE
="$1"
49 local varname
="$1" ; shift
50 export CONFIG_
${CONFIG_SECTION}_
${varname}="$*"
51 option_cb
"$varname" "$*"
55 [ -z "$CONFIG_SECTION" ] && return
56 for oldsetting
in `set | grep ^CONFIG_${CONFIG_SECTION}_ | \
57 sed -e 's/\(.*\)=.*$/\1/'` ; do
66 [ \
! -e "$1" -a -e "/etc/config/$1" ] && {
70 CONFIG_FILENAME
="$DIR$1"
73 ${CD:+cd -} >/dev
/null
74 ${CONFIG_SECTION:+config_cb}
79 "") eval "echo \${CONFIG_${1}_${2}}";;
80 *) eval "$1=\"\${CONFIG_${2}_${3}}\"";;
85 export CONFIG_
${1}_${2}="${3}"
89 sed 's/^[^#]/insmod &/' $* | ash 2>&- || :
This page took 0.045683 seconds and 5 git commands to generate.