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 | 28f4f4a6d76a6d2f03439a9e794213ab40b6619c (patch) | |
tree | 94dbfd384d9c3f20b0cca0109879f4390d57c1a4 /package/base-files/files/lib | |
parent | 4a9ea80ef06472204b66ab037179455a47a98c9e (diff) | |
download | master-31e0f0ae-28f4f4a6d76a6d2f03439a9e794213ab40b6619c.tar.gz master-31e0f0ae-28f4f4a6d76a6d2f03439a9e794213ab40b6619c.tar.bz2 master-31e0f0ae-28f4f4a6d76a6d2f03439a9e794213ab40b6619c.zip |
/lib/functions.sh: remove config_rename()
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40412
Diffstat (limited to 'package/base-files/files/lib')
-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" "" } |