2 alias debug
=${DEBUG:-:}
10 ifconfig
"$1" >&- 2>&- ||
11 [ "${1%%[0-9]}" = "br" ] ||
12 { debug
"# missing interface '$1' ignored"; false
; }
16 env
-i ACTION
=$1 INTERFACE
=$2 /sbin
/hotplug net
23 eval "export ${var}=\"\${${var}:+\${${var}}${value:+$sep}}$value\""
36 export CONFIG_SECTION
="${2:-cfg${_C}}"
37 export CONFIG_
${CONFIG_SECTION}_TYPE
="$1"
41 local varname
="$1" ; shift
42 export CONFIG_
${CONFIG_SECTION}_
${varname}="$*"
43 option_cb
"$varname" "$*"
47 [ -z "$CONFIG_SECTION" ] && return
48 for oldsetting
in `set | grep ^CONFIG_${CONFIG_SECTION}_ | \
49 sed -e 's/\(.*\)=.*$/\1/'` ; do
57 if [ \
! -e "$1" -a -e "/etc/config/$1" ]; then
58 cd /etc
/config
&& local CD
=1
61 ${CD:+cd - >/dev/null}
62 ${CONFIG_SECTION:+config_cb}
67 "") eval "echo \${CONFIG_${1}_${2}}";;
68 *) eval "$1=\"\${CONFIG_${2}_${3}}\"";;
73 export CONFIG_
${1}_${2}="${3}"
77 sed 's/^[^#]/insmod &/' $* | ash 2>&- || :
This page took 0.057486 seconds and 5 git commands to generate.