[OpenWrt-Devel] [PATCH] @44360 scripts

. blubblub at nurfuerspam.de
Mon Feb 9 09:55:21 EST 2015


 From d1f104b6fe94507a80b85943fd1d4ba895f4e0a0 Mon Sep 17 00:00:00 2001
From: Detlef Schmitt <blubblub at nurfuerspam.de>
Date: Mon, 9 Feb 2015 15:35:28 +0100
Subject: [PATCH 2/2] daemon.notice netifd: wan (4235): udhcpc: option -h 
NAME
  is deprecated, use -x hostname:NAME daemon.notice netifd: wan (4235): 
udhcpc
  (v1.22.1) started

replaced the deprecated option "-h HOSTNAME" for udhcpc
with the new one
---
  package/network/config/netifd/files/lib/netifd/proto/dhcp.sh | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh 
b/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh
index d4c483d..bde60a2 100755
--- a/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh
+++ b/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh
@@ -52,7 +52,7 @@ proto_dhcp_setup() {
                 -s /lib/netifd/dhcp.script \
                 -f -t 0 -i "$iface" \
                 ${ipaddr:+-r $ipaddr} \
-               ${hostname:+-H $hostname} \
+               ${hostname:+-x hostname:$hostname} \
                 ${vendorid:+-V $vendorid} \
                 $clientid $broadcast $dhcpopts
  }
-- 
1.9.1

Signed-off-by: Detlef Schmitt <blubblub at nurfuerspam.de>
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list