All pastes #277457 Raw Edit

Anonymous

public text v1 · immutable
·published 2006-12-13 06:20 UTC
rendered paste body
 files/lib/config/uci.sh
--- files.orig/lib/config/uci.sh        2006-12-13 00:40:52.000000000 -0500
+++ files/lib/config/uci.sh     2006-12-13 01:18:56.000000000 -0500
@@ -127,7 +127,7 @@
                        return 0
                }
 
-               config_load "$PACKAGE" || CONFIG_FILENAME="$ROOT/etc/config/$PACKAGE_BASE"
+               config_load "$PACKAGE" && 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"