diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-04-07 10:29:51 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-04-07 10:29:51 +0000 |
commit | d0973094c93b20dac338ba126095aa5b5d45d734 (patch) | |
tree | 3da2df98e48cfea264c415d394443d7a16151b47 /package/base-files | |
parent | 8ce376a52465de104db6e629ede05d859d1bf1df (diff) | |
download | master-187ad058-d0973094c93b20dac338ba126095aa5b5d45d734.tar.gz master-187ad058-d0973094c93b20dac338ba126095aa5b5d45d734.tar.bz2 master-187ad058-d0973094c93b20dac338ba126095aa5b5d45d734.zip |
/lib/functions.sh: remove config_rename()
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40412 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files')
-rwxr-xr-x | package/base-files/files/lib/functions.sh | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/package/base-files/files/lib/functions.sh b/package/base-files/files/lib/functions.sh index 7beea0e0ef..1b34b8f50d 100755 --- a/package/base-files/files/lib/functions.sh +++ b/package/base-files/files/lib/functions.sh @@ -84,24 +84,6 @@ list() { list_cb "$varname" "$*" } -config_rename() { - local OLD="$1" - local NEW="$2" - local oldvar - local newvar - - [ -n "$OLD" -a -n "$NEW" ] || return - for oldvar in `set | grep ^CONFIG_${OLD}_ | \ - sed -e 's/\(.*\)=.*$/\1/'` ; do - newvar="CONFIG_${NEW}_${oldvar##CONFIG_${OLD}_}" - eval "export ${NO_EXPORT:+-n} \"$newvar=\${$oldvar}\"" - unset "$oldvar" - done - export ${NO_EXPORT:+-n} CONFIG_SECTIONS="$(echo " $CONFIG_SECTIONS " | sed -e "s, $OLD , $NEW ,")" - - [ "$CONFIG_SECTION" = "$OLD" ] && export ${NO_EXPORT:+-n} CONFIG_SECTION="$NEW" -} - config_unset() { config_set "$1" "$2" "" } |