2 # Copyright (C) 2006 OpenWrt.org
3 # Copyright (C) 2006 Fokus Fraunhofer <carsten.tittel@fokus.fraunhofer.de>
5 alias debug
=${DEBUG:-:}
14 env
-i ACTION
=$1 INTERFACE
=$2 /sbin
/hotplug net
21 eval "export ${var}=\"\${${var}:+\${${var}}${value:+$sep}}\$value\""
38 name
="${name:-cfg${_C}}"
39 config_cb
"$cfgtype" "$name"
40 export CONFIG_SECTION
="$name"
41 export CONFIG_
${CONFIG_SECTION}_TYPE
="$cfgtype"
45 local varname
="$1"; shift
46 export CONFIG_
${CONFIG_SECTION}_
${varname}="$*"
47 option_cb
"$varname" "$*"
56 [ -z "$OLD" -o -z "$NEW" ] && return
57 for oldsetting
in `set | grep ^CONFIG_${OLD}_ | \
58 sed -e 's/\(.*\)=.*$/\1/'` ; do
59 newvar
="CONFIG_${NEW}_${oldsetting##CONFIG_${OLD}_}"
60 eval "${newvar}=\${$oldsetting}"
63 [ "$CONFIG_SECTION" = "$OLD" ] && CONFIG_SECTION
="$NEW"
67 config_set
"$1" "$2" ""
71 [ -z "$CONFIG_SECTION" ] && return
72 for oldsetting
in `set | grep ^CONFIG_${CONFIG_SECTION}_ | \
73 sed -e 's/\(.*\)=.*$/\1/'` ; do
83 [ \
! -e "$1" -a -e "/etc/config/$1" ] && {
87 CONFIG_FILENAME
="$DIR$1"
90 ${CD:+cd -} >/dev
/null
91 ${CONFIG_SECTION:+config_cb}
96 "") eval "echo \"\${CONFIG_${1}_${2}}\"";;
97 *) eval "$1=\"\${CONFIG_${2}_${3}}\"";;
102 export CONFIG_
${1}_${2}="${3}"
106 sed 's/^[^#]/insmod &/' $* | ash 2>&- || :
110 for file in $(ls $1/*.sh 2>/dev/null); do
116 local PART="$
(grep "\"$1\"" /proc
/mtd |
awk -F: '{print $1}')"
118 echo "${PART:+/dev/mtdblock/$PART}"
This page took 0.062302 seconds and 5 git commands to generate.