From patchwork Mon Apr 27 15:05:00 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Mehlis X-Patchwork-Id: 465074 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id DFDBA1402B6 for ; Tue, 28 Apr 2015 01:06:27 +1000 (AEST) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id D275A280192; Mon, 27 Apr 2015 17:05:08 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id ABD1D2800D3 for ; Mon, 27 Apr 2015 17:05:03 +0200 (CEST) X-policyd-weight: using cached result; rate:hard: -7.6 Received: from phoenix.uberspace.de (phoenix.uberspace.de [95.143.172.135]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Mon, 27 Apr 2015 17:05:03 +0200 (CEST) Received: (qmail 10718 invoked from network); 27 Apr 2015 15:06:05 -0000 Received: from localhost (HELO localhost.localdomain) (127.0.0.1) by phoenix.uberspace.de with SMTP; 27 Apr 2015 15:06:05 -0000 From: Christian Mehlis To: openwrt-devel@lists.openwrt.org Date: Mon, 27 Apr 2015 17:05:00 +0200 Message-Id: <1430147100-22065-1-git-send-email-christian@m3hlis.de> X-Mailer: git-send-email 2.3.4.263.gf53fc38 Cc: Leon George Subject: [OpenWrt-Devel] [PATCH] netifd-dhcp: supply parameters to user-script X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" hand over parameters to user-script e.g. $1=deconfig Signed-off-by: Leon George Signed-off-by: Christian Mehlis --- package/network/config/netifd/files/lib/netifd/dhcp.script | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/network/config/netifd/files/lib/netifd/dhcp.script b/package/network/config/netifd/files/lib/netifd/dhcp.script index fb9f95a..94ae206 100755 --- a/package/network/config/netifd/files/lib/netifd/dhcp.script +++ b/package/network/config/netifd/files/lib/netifd/dhcp.script @@ -93,6 +93,6 @@ case "$1" in esac # user rules -[ -f /etc/udhcpc.user ] && . /etc/udhcpc.user +[ -f /etc/udhcpc.user ] && . /etc/udhcpc.user "$@" exit 0