/lib/functions.sh: remove config_rename()
authorFelix Fietkau <nbd@openwrt.org>
Mon, 7 Apr 2014 10:29:51 +0000 (10:29 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 7 Apr 2014 10:29:51 +0000 (10:29 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40412

package/base-files/files/lib/functions.sh

index 7beea0e0ef127c36a8f5e3977013f601f68b4435..1b34b8f50dcb12782e0f63105e814f1b72d50503 100755 (executable)
@@ -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" ""
 }