- tweaked patch to set OS version in vars that normally depend on dpkg
- tweaked inet.defn to remove verbosity from dhclient execution
This commit is contained in:
57
SRC/patches/04_quiet-dhclient.patch
Normal file
57
SRC/patches/04_quiet-dhclient.patch
Normal file
@@ -0,0 +1,57 @@
|
||||
diff -Naur a/inet.defn b/inet.defn
|
||||
--- a/inet.defn 2014-11-29 07:24:14.000000000 -0600
|
||||
+++ b/inet.defn 2016-11-08 12:57:33.260000000 -0600
|
||||
@@ -81,7 +81,7 @@
|
||||
|
||||
up
|
||||
[[ip link set dev %iface% address %hwaddress%]]
|
||||
- dhclient -v -pf /run/dhclient.%iface%.pid -lf /var/lib/dhcp/dhclient.%iface%.leases %iface% \
|
||||
+ dhclient -pf /run/dhclient.%iface%.pid -lf /var/lib/dhcp/dhclient.%iface%.leases %iface% \
|
||||
[[-e IF_METRIC=%metric%]] \
|
||||
if (execable("/sbin/dhclient"))
|
||||
dhclient3 -pf /run/dhclient.%iface%.pid -lf /var/lib/dhcp3/dhclient.%iface%.leases %iface% \
|
||||
@@ -96,7 +96,7 @@
|
||||
elsif (execable("/sbin/dhcpcd"))
|
||||
|
||||
down
|
||||
- dhclient -v -r -pf /run/dhclient.%iface%.pid -lf /var/lib/dhcp/dhclient.%iface%.leases %iface% \
|
||||
+ dhclient -r -pf /run/dhclient.%iface%.pid -lf /var/lib/dhcp/dhclient.%iface%.leases %iface% \
|
||||
if (execable("/sbin/dhclient"))
|
||||
dhclient3 -r -pf /run/dhclient.%iface%.pid -lf /var/lib/dhcp3/dhclient.%iface%.leases %iface% \
|
||||
elsif (execable("/sbin/dhclient3"))
|
||||
@@ -269,7 +269,7 @@
|
||||
|
||||
up
|
||||
[[ifconfig %iface% link %hwaddress%]]
|
||||
- dhclient -v -pf /run/dhclient.%iface%.pid -lf /var/lib/dhcp/dhclient.%iface%.leases %iface% \
|
||||
+ dhclient -pf /run/dhclient.%iface%.pid -lf /var/lib/dhcp/dhclient.%iface%.leases %iface% \
|
||||
[[-e IF_METRIC=%metric%]] \
|
||||
if (execable("/sbin/dhclient"))
|
||||
dhclient3 -pf /run/dhclient.%iface%.pid -lf /var/lib/dhcp3/dhclient.%iface%.leases %iface% \
|
||||
@@ -283,7 +283,7 @@
|
||||
elsif (execable("/sbin/dhcpcd"))
|
||||
|
||||
down
|
||||
- dhclient -v -r -pf /run/dhclient.%iface%.pid -lf /var/lib/dhcp/dhclient.%iface%.leases %iface% \
|
||||
+ dhclient -r -pf /run/dhclient.%iface%.pid -lf /var/lib/dhcp/dhclient.%iface%.leases %iface% \
|
||||
if (execable("/sbin/dhclient"))
|
||||
dhclient3 -r -pf /run/dhclient.%iface%.pid -lf /var/lib/dhcp3/dhclient.%iface%.leases %iface% \
|
||||
elsif (execable("/sbin/dhclient3"))
|
||||
@@ -425,7 +425,7 @@
|
||||
|
||||
up
|
||||
[[Warning: Option hwaddress: %hwaddress% not yet supported]]
|
||||
- dhclient -v -pf /run/dhclient.%iface///.%.pid -lf /var/lib/dhcp/dhclient.%iface///.%.leases %iface% \
|
||||
+ dhclient -pf /run/dhclient.%iface///.%.pid -lf /var/lib/dhcp/dhclient.%iface///.%.leases %iface% \
|
||||
if (execable("/sbin/dhclient"))
|
||||
udhcpc -n -p /run/udhcpc.%iface///.%.pid -i %iface% [[-H %hostname%]] \
|
||||
[[-c %client%]] \
|
||||
@@ -435,7 +435,7 @@
|
||||
elsif (execable("/sbin/dhcpcd"))
|
||||
|
||||
down
|
||||
- dhclient -v -r -pf /run/dhclient.%iface///.%.pid -lf /var/lib/dhcp/dhclient.%iface///.%.leases %iface% \
|
||||
+ dhclient -r -pf /run/dhclient.%iface///.%.pid -lf /var/lib/dhcp/dhclient.%iface///.%.leases %iface% \
|
||||
if (execable("/sbin/dhclient"))
|
||||
kill -USR2 $(cat /run/udhcpc.%iface///.%.pid); kill -TERM $(cat /run/udhcpc.%iface///.%.pid) \
|
||||
elsif (execable("/sbin/udhcpc"))
|
||||
Reference in New Issue
Block a user