From patchwork Tue Jun 7 15:17:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angelo Compagnucci X-Patchwork-Id: 1639995 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=HeKYnnDM; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.133; helo=smtp2.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LHYrT60fWz9sFs for ; Wed, 8 Jun 2022 01:17:45 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id EE46A40B30; Tue, 7 Jun 2022 15:17:43 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id E5u57HCQ8BHs; Tue, 7 Jun 2022 15:17:43 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id 2DDA040AE6; Tue, 7 Jun 2022 15:17:42 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 13AE91BF39F for ; Tue, 7 Jun 2022 15:17:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 0243760C28 for ; Tue, 7 Jun 2022 15:17:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp3.osuosl.org (amavisd-new); dkim=pass (1024-bit key) header.d=amarulasolutions.com Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SJuucW_DzXzr for ; Tue, 7 Jun 2022 15:17:28 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by smtp3.osuosl.org (Postfix) with ESMTPS id 4B85B607B5 for ; Tue, 7 Jun 2022 15:17:28 +0000 (UTC) Received: by mail-ej1-x631.google.com with SMTP id u12so35894203eja.8 for ; Tue, 07 Jun 2022 08:17:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4IXBKXDSSFEuVlJRXSZHqEevosZ3N4hk8LYyfESIp88=; b=HeKYnnDMoZypa5o6bSz0661hyztqpzGfqPf4d0yhoKOQoXgA+2xf2jDJkKQs3LFOx7 xWbwRhpJRfvYCALcSX6NRQoRyvTyVks0RJYmD5McYAMmUpbYCjd2M9uAo9W9rqqkbWqW ZbO4iBjGHedb4ZWhERtJY599o2fHiop02l/cI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4IXBKXDSSFEuVlJRXSZHqEevosZ3N4hk8LYyfESIp88=; b=RarGtjFaAEpiaZoAQaEHRBylHiEvRDsy2qgOtxFO1STyZ8TeYOoXDx6152DC/vXz1J TID3DlmHI5nK7/FMkj+51k7p/lan7BjjcHqF3yX58lqzLL7nXYBYWRlbjt3V6e+TAxMp yWaeG+VrqJxGBNm1CvMES5OQSx5oa+3BDwiE60PGlRANce80cjliWEzb8ouEL9wH8sJg /ZY14uOYgnHup1ZTVnWko4hDwUCr4LJAPxk1YVIcOLIUkriLOzqf1FhfVc9MLlSM8NaE 6Bs1FVE1xjy7or/ckbuLLT5U1Y3RzQKqi21azPePp6rz9vQ1Vgm/BgSONKFdz2hYafoa SCMw== X-Gm-Message-State: AOAM531bnO4njF2ID6ifcPttclUt7tjZT2d5WuBJ2IgoVIA+MDFziDbY 2PAe8dXcU8BENgkvR1Z6shjGGYrjCGVdeQ== X-Google-Smtp-Source: ABdhPJx+Ncil1h+9Nek6K5z1p3chFBtePEhRebAjxMB0b/eJAXw8kQeEBs/DDI3IrZ9I1oD0IsVkLg== X-Received: by 2002:a17:906:dc89:b0:6f4:d3a9:34ed with SMTP id cs9-20020a170906dc8900b006f4d3a934edmr26878105ejc.459.1654615046463; Tue, 07 Jun 2022 08:17:26 -0700 (PDT) Received: from angeloc.pdxnet.pdxeng.ch (host085115199111.static.fidoka.tech. [85.115.199.111]) by smtp.gmail.com with ESMTPSA id ay25-20020a056402203900b0042cf43e1937sm10588291edb.75.2022.06.07.08.17.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 08:17:26 -0700 (PDT) From: Angelo Compagnucci To: buildroot@buildroot.org Date: Tue, 7 Jun 2022 17:17:17 +0200 Message-Id: <20220607151719.2305134-2-angelo@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220607151719.2305134-1-angelo@amarulasolutions.com> References: <20220607151719.2305134-1-angelo@amarulasolutions.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 1/3] package/wpa_supplicant: fixing "Invalid configuration line" X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jagan@amarulasolutions.com, Angelo Compagnucci Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Default configuration file is wrong for the default compiling options. Fixes: Successfully initialized wpa_supplicant Line 1: unknown global field 'ctrl_interface=/var/run/wpa_supplicant'. Line 1: Invalid configuration line 'ctrl_interface=/var/run/wpa_supplicant'. Failed to read or parse configuration '/etc/wpa_supplicant.conf'. Signed-off-by: Angelo Compagnucci --- package/wpa_supplicant/wpa_supplicant.conf | 1 - 1 file changed, 1 deletion(-) diff --git a/package/wpa_supplicant/wpa_supplicant.conf b/package/wpa_supplicant/wpa_supplicant.conf index 1994a6c739..f8a73d465f 100644 --- a/package/wpa_supplicant/wpa_supplicant.conf +++ b/package/wpa_supplicant/wpa_supplicant.conf @@ -1,4 +1,3 @@ -ctrl_interface=/var/run/wpa_supplicant ap_scan=1 network={ From patchwork Tue Jun 7 15:17:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angelo Compagnucci X-Patchwork-Id: 1639996 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=pNBV5jvs; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LHYrk0Y9rz9sFs for ; Wed, 8 Jun 2022 01:17:58 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 7F63D83F82; Tue, 7 Jun 2022 15:17:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lvNOSo_5rU9E; Tue, 7 Jun 2022 15:17:55 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 9828583F21; Tue, 7 Jun 2022 15:17:54 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 41D811BF39F for ; Tue, 7 Jun 2022 15:17:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 3F6ED416AF for ; Tue, 7 Jun 2022 15:17:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp4.osuosl.org (amavisd-new); dkim=pass (1024-bit key) header.d=amarulasolutions.com Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZcVeS2GSuOJg for ; Tue, 7 Jun 2022 15:17:29 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by smtp4.osuosl.org (Postfix) with ESMTPS id 2EC9A415E5 for ; Tue, 7 Jun 2022 15:17:29 +0000 (UTC) Received: by mail-ed1-x530.google.com with SMTP id x5so18361082edi.2 for ; Tue, 07 Jun 2022 08:17:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GFN+CH/LKuiEBdw8AQyBRNMIvtbr2TQR93S7GrKHiz0=; b=pNBV5jvs8W0qE2tZB0EtQWFGrVqkAjBQvF3BfWmKqQxIFevHTK440Q+XbgG53Ijp1S NkP6Z49AXKKqhCBGJeEK50xAsD7FagguMAxGUAckWc1wy3lda32w1nlP7v1vLq94SEnN XPZReMC8cHuBNupVMbKlHoqrwKVBody9cVplQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GFN+CH/LKuiEBdw8AQyBRNMIvtbr2TQR93S7GrKHiz0=; b=lKycGuga19GUuycRNXCI/dO5lfu7qIV7ts7Nmz681r7AsBPbK1/sk03dp8MuFv1+JE ZGbZ68ibGCkH5jfxidH47SPcXNBsTu8Gf2w29yG1otBHwFyWVSwup+41Y6JegmXnw/at FwrgoOL9mg46hdMEEUab5SJHFayCjnouV3Pg8c/eL+Qi5Od6NIGqbcR5vImxAMiT2JZP FRzsl3s1DrEGnpNmejhCNHXXnH8cVtinwSeLCKU25gJ+qlUiLcZLjybsyCli+GqbvXpq r+gnHbb2U/ho2cBq1e6Kv81t5PZxi4K63Tmtgu5pTFsPiHlU38GFn51+PW2H/XhN+ehK 3myA== X-Gm-Message-State: AOAM53310vYpbeJ8G7Z1P98CzsHPjxAqV7uxHnnuGJLtSFHgESsxcYcE d/lXGm5yzdVaJJ4mR6DJTYfKZpnzFbkTMQ== X-Google-Smtp-Source: ABdhPJwGxHjfhXPXhSo6CjtKPpxm/v4HkLOWhyshpQiTe4UlfXBvVC/HTZZgQ0vPHDA0ptoLFCWQQg== X-Received: by 2002:a05:6402:4145:b0:42d:842a:f916 with SMTP id x5-20020a056402414500b0042d842af916mr33673089eda.357.1654615047342; Tue, 07 Jun 2022 08:17:27 -0700 (PDT) Received: from angeloc.pdxnet.pdxeng.ch (host085115199111.static.fidoka.tech. [85.115.199.111]) by smtp.gmail.com with ESMTPSA id ay25-20020a056402203900b0042cf43e1937sm10588291edb.75.2022.06.07.08.17.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 08:17:26 -0700 (PDT) From: Angelo Compagnucci To: buildroot@buildroot.org Date: Tue, 7 Jun 2022 17:17:18 +0200 Message-Id: <20220607151719.2305134-3-angelo@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220607151719.2305134-1-angelo@amarulasolutions.com> References: <20220607151719.2305134-1-angelo@amarulasolutions.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 2/3] package/wpa_supplicant: adding ifupdown support X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jagan@amarulasolutions.com, Angelo Compagnucci Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Actually, configuring a wifi interface as per "interfaces" man: auto wlan0 iface wlan0 inet dhcp wpa-conf /etc/wpa_supplicant.conf doesn't work on buildroot because the line wpa-conf is ignored due to the lack of a proper ifupdown script to handle the wpa_supplicant initialization. Signed-off-by: Angelo Compagnucci --- v1 -> v2: * Simplify script to the minimum to have the service started (Thomas, Nicolas) package/wpa_supplicant/ifupdown.sh | 48 ++++++++++++++++++++++++ package/wpa_supplicant/wpa_supplicant.mk | 10 +++++ 2 files changed, 58 insertions(+) create mode 100755 package/wpa_supplicant/ifupdown.sh diff --git a/package/wpa_supplicant/ifupdown.sh b/package/wpa_supplicant/ifupdown.sh new file mode 100755 index 0000000000..7321c7602f --- /dev/null +++ b/package/wpa_supplicant/ifupdown.sh @@ -0,0 +1,48 @@ +#!/bin/sh + +# This file is executed by ifupdown in pre-up, post-up, pre-down and +# post-down phases of network interface configuration. + +WPA_SUP_BIN="/usr/sbin/wpa_supplicant" + +# Allow wpa_supplicant interface to be specified via wpa-iface +# useful for starting wpa_supplicant on one interface of a bridge +if [ -n "$IF_WPA_IFACE" ]; then + WPA_IFACE="$IF_WPA_IFACE" +else + WPA_IFACE="$IFACE" +fi + +WPA_SUP_PIDFILE="/run/wpa_supplicant.${WPA_IFACE}.pid" + +do_start () { + [ -z "$IF_WPA_CONF" ] && exit 0 + + if [ ! -s "$IF_WPA_CONF" ]; then + echo "cannot read contents of $IF_WPA_CONF" + exit 1 + fi + WPA_SUP_CONF="-c $IF_WPA_CONF" +} + +case "$MODE" in + start) + do_start + case "$PHASE" in + post-up) + start-stop-daemon -S -q -x ${WPA_SUP_BIN} \ + -- -B -i ${WPA_IFACE} ${WPA_SUP_CONF} -P ${WPA_SUP_PIDFILE} + ;; + esac + ;; + + stop) + case "$PHASE" in + pre-down) + start-stop-daemon -K -p ${WPA_SUP_PIDFILE} + ;; + esac + ;; +esac + +exit 0 diff --git a/package/wpa_supplicant/wpa_supplicant.mk b/package/wpa_supplicant/wpa_supplicant.mk index c4cfe03371..d38bf572db 100644 --- a/package/wpa_supplicant/wpa_supplicant.mk +++ b/package/wpa_supplicant/wpa_supplicant.mk @@ -250,6 +250,14 @@ define WPA_SUPPLICANT_INSTALL_STAGING_CMDS $(WPA_SUPPLICANT_INSTALL_STAGING_WPA_CLIENT_SO) endef +ifeq ($(BR2_PACKAGE_IFUPDOWN_SCRIPTS),y) +define WPA_SUPPLICANT_INSTALL_IFUP_SCRIPTS + $(INSTALL) -m 0755 -D package/wpa_supplicant/ifupdown.sh \ + $(TARGET_DIR)/etc/network/if-up.d/wpasupplicant + ln -sf ../if-up.d/wpasupplicant $(TARGET_DIR)/etc/network/if-down.d/wpasupplicant +endef +endif + define WPA_SUPPLICANT_INSTALL_TARGET_CMDS $(INSTALL) -m 0755 -D $(@D)/$(WPA_SUPPLICANT_SUBDIR)/wpa_supplicant \ $(TARGET_DIR)/usr/sbin/wpa_supplicant @@ -259,8 +267,10 @@ define WPA_SUPPLICANT_INSTALL_TARGET_CMDS $(WPA_SUPPLICANT_INSTALL_PASSPHRASE) $(WPA_SUPPLICANT_INSTALL_DBUS) $(WPA_SUPPLICANT_INSTALL_WPA_CLIENT_SO) + $(WPA_SUPPLICANT_INSTALL_IFUP_SCRIPTS) endef + define WPA_SUPPLICANT_INSTALL_INIT_SYSTEMD $(INSTALL) -m 0644 -D $(@D)/$(WPA_SUPPLICANT_SUBDIR)/systemd/wpa_supplicant.service \ $(TARGET_DIR)/usr/lib/systemd/system/wpa_supplicant.service From patchwork Tue Jun 7 15:17:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angelo Compagnucci X-Patchwork-Id: 1639997 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=FRxxQFpO; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LHYs00zMlz9sFs for ; Wed, 8 Jun 2022 01:18:12 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 26F1E41779; Tue, 7 Jun 2022 15:18:09 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nK9A_dp4AW_H; Tue, 7 Jun 2022 15:18:08 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 0414641638; Tue, 7 Jun 2022 15:18:06 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 0DCE81BF39F for ; Tue, 7 Jun 2022 15:17:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id EE41D415E5 for ; Tue, 7 Jun 2022 15:17:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ly09MHWPLha7 for ; Tue, 7 Jun 2022 15:17:30 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by smtp4.osuosl.org (Postfix) with ESMTPS id 2070941638 for ; Tue, 7 Jun 2022 15:17:29 +0000 (UTC) Received: by mail-ed1-x536.google.com with SMTP id x62so23430807ede.10 for ; Tue, 07 Jun 2022 08:17:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=fS1T17cB+3MrFgNJwz54OS8y4tISBsS1wTItXFsZW+I=; b=FRxxQFpOsNaXERvdTZqlpGAQc/HRRzohPQNlb/XTx4FDQt03+4lXslkxBkc6ZHmTYi frDgT53jDDa0ks1DzuBlV23KLNKQgatoF0ZdsxsjrtbcRjKFAqjacD8ePtDKk4RC9jxS QFZBCllJLnkA5agCNWHfY8kikY9q3icShBYRk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=fS1T17cB+3MrFgNJwz54OS8y4tISBsS1wTItXFsZW+I=; b=Re9Rs25W2GBbvVzwhwitHH5ypLKiDUmkqIKFRH0hZOcv/zuJQcG66Ac3UGF2YePDUt dA992UVSZf011tJVrngzxaM3n+U1TO9zL1MKcrtjwyp1tVKXfP/bS2/GUIuQn3u/N5UC HrL0gQaKChoP82FKuQeJRY120mHZE+VFsnHfPMIFWkZnzO0sKTeaHeNmB/owcZPC+Rl2 zxYBTQU7+33uCI43nhuBz4TWAsRn8BRirU5ZJglvFuD9CRBSVBagWILwEGe81bdtZM4A wzeZ+7nrfOD4HTN+bSMM5/Agp+oG4t0MpRjYG6TGZMK/FDZaEToc+Ikiz9l+ZYnrqjD5 Ii2w== X-Gm-Message-State: AOAM5333kbJyFm31xof26hQtCACG500NKxZJVz+uizjK30uhK4/x95BW fKch+ZX1682ghdNZDRKGnOuJxbaHssCnJQ== X-Google-Smtp-Source: ABdhPJwq7xWJB4zZ7tiq1ACICsAuH/ooIIuIHwly5XOBZZnOZMWW4hYj9eGNoPhne0mK34rpuGZDig== X-Received: by 2002:a05:6402:3899:b0:42d:d79e:acef with SMTP id fd25-20020a056402389900b0042dd79eacefmr33905905edb.12.1654615048228; Tue, 07 Jun 2022 08:17:28 -0700 (PDT) Received: from angeloc.pdxnet.pdxeng.ch (host085115199111.static.fidoka.tech. [85.115.199.111]) by smtp.gmail.com with ESMTPSA id ay25-20020a056402203900b0042cf43e1937sm10588291edb.75.2022.06.07.08.17.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 08:17:27 -0700 (PDT) From: Angelo Compagnucci To: buildroot@buildroot.org Date: Tue, 7 Jun 2022 17:17:19 +0200 Message-Id: <20220607151719.2305134-4-angelo@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220607151719.2305134-1-angelo@amarulasolutions.com> References: <20220607151719.2305134-1-angelo@amarulasolutions.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 3/3] package/busybox: make udhcp discover faster X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jagan@amarulasolutions.com, Thomas Petazzoni , Angelo Compagnucci Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Instead of waiting almost 10 seconds foreground (3 discovery packets for 3 seconds retry delay) at each boot, make only one request then fork to background. This way, the behavior is the same for working interfaces, but it's way faster for interfaces where the address cannot be obtained straight away. Acked-by: Thomas Petazzoni Signed-off-by: Angelo Compagnucci --- package/busybox/busybox.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/busybox/busybox.config b/package/busybox/busybox.config index 52cb8ffcd8..2409cbcce1 100644 --- a/package/busybox/busybox.config +++ b/package/busybox/busybox.config @@ -1022,7 +1022,7 @@ CONFIG_UDHCP_DEBUG=0 CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS=80 CONFIG_FEATURE_UDHCP_RFC3397=y CONFIG_FEATURE_UDHCP_8021Q=y -CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS="-b -R -O search" +CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS="-t1 -b -R -O search" # # Print Utilities