update d80211 to latest wireless-dev version
[openwrt.git] / package / base-files / files / lib / config / uci.sh
index bd13222..12795d8 100755 (executable)
@@ -127,7 +127,8 @@ uci_commit() {
                        return 0
                }
                
-               config_load "$PACKAGE" || CONFIG_FILENAME="$ROOT/etc/config/$PACKAGE_BASE"
+               config_load "$PACKAGE"
+               CONFIG_FILENAME="${CONFIG_FILENAME:-$ROOT/etc/config/$PACKAGE_BASE}"
                uci_do_update "$CONFIG_FILENAME" "$updatestr" > "/tmp/.uci/$PACKAGE_BASE.new" && {
                        mv -f "/tmp/.uci/$PACKAGE_BASE.new" "$CONFIG_FILENAME" && \
                        rm -f "/tmp/.uci/$PACKAGE_BASE"
This page took 0.024432 seconds and 4 git commands to generate.