docker-ce: remove not applicable uciupdate
authorFlorian Eckert <redacted>
Wed, 11 Nov 2020 13:20:49 +0000 (14:20 +0100)
committerFlorian Eckert <redacted>
Thu, 19 Nov 2020 13:20:07 +0000 (14:20 +0100)
As the protocol is set to none, this makes no sense here, as it cannot
be controlled and thus processed by the netifd.

Signed-off-by: Florian Eckert <redacted>
utils/docker-ce/files/dockerd.init

index d769b5b4d3a53deabeaa3baf8652ddbfc93ed10a..ce65b012a77ffbb8b7485a0f9ad3b3e4a6f9cc9c 100755 (executable)
@@ -22,29 +22,6 @@ boot() {
        rc_procd start_service
 }
 
-uciupdate() {
-       local net="${1}"
-
-       uci_quiet get network.docker || {
-               logger -t "dockerd-init" -p warn "No network uci config section for docker default bridge (docker0) found"
-               return
-       }
-
-       [ -z "${net}" ] && {
-               logger -t "dockerd-init" -p notice "Removing network uci config options for docker default bridge (docker0)"
-               uci_quiet delete network.docker.netmask
-               uci_quiet delete network.docker.ipaddr
-               uci_quiet commit network
-               return
-       }
-
-       eval "$(ipcalc.sh "${net}")"
-       logger -t "dockerd-init" -p notice "Updating network uci config option \"${net}\" for docker default bridge (docker0)"
-       uci_quiet set network.docker.netmask="${NETMASK}"
-       uci_quiet set network.docker.ipaddr="${IP}"
-       uci_quiet commit network
-}
-
 uciadd() {
        local iface="$1"
        local device="$2"
@@ -177,8 +154,6 @@ process_config() {
        [ "${iptables}" -ne "0" ] && config_foreach iptables_add_blocking_rule firewall
 
        json_dump > "${DOCKERD_CONF}"
-
-       uciupdate "${bip}"
 }
 
 start_service() {
git clone https://git.99rst.org/PROJECT