2 alias debug
=${DEBUG:-:}
6 ifconfig
"$1" >&- 2>&- ||
7 [ "${1%%[0-9]}" = "br" ] ||
8 { debug
"# missing interface '$1' ignored"; false
; }
12 env
-i ACTION
=$1 INTERFACE
=$2 /sbin
/hotplug net
25 export CONFIG_SECTION
="${2:-cfg${_C}}"
26 export CONFIG_
${CONFIG_SECTION}_TYPE
="$1"
30 local varname
="$1" ; shift
31 export CONFIG_
${CONFIG_SECTION}_
${varname}="$*"
32 option_cb
"$varname" "$*"
36 [ -z "$CONFIG_SECTION" ] && return
37 for oldsetting
in `set | grep ^CONFIG_${CONFIG_SECTION}_ | \
38 sed -e 's/\(.*\)=.*$/\1/'` ; do
46 if [ \
! -e "$1" -a -e "/etc/config/$1" ]; then
47 cd /etc
/config
&& local CD
=1
50 ${CD:+cd - >/dev/null}
51 ${CONFIG_SECTION:+config_cb}
56 "") eval "echo \${CONFIG_${1}_${2}}";;
57 *) eval "$1=\"\${CONFIG_${2}_${3}}\"";;
62 export CONFIG_
${1}_${2}="${3}"
66 sed 's/^[^#]/insmod &/' $* | ash 2>&- || :
This page took 0.048695 seconds and 5 git commands to generate.