diff options
author | akuster <akuster808@gmail.com> | 2020-09-01 08:22:34 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-02 16:00:46 +0100 |
commit | 8d7db36ecb19cb775ecc8d0522ded3e55b53c820 (patch) | |
tree | 24f55c645f353175b09f298933ce3d72b85a7fc1 /meta/recipes-connectivity/dhcp/files/dhclient-systemd-wrapper | |
parent | 6d60518854c5aab7f58bd9f010d8868d5820bb25 (diff) | |
download | poky-8d7db36ecb19cb775ecc8d0522ded3e55b53c820.tar.gz |
dhcp: remove from core
update maintainers.inc too
(From OE-Core rev: 7e3357892f204788162747e907d68f857118cf42)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/dhcp/files/dhclient-systemd-wrapper')
-rw-r--r-- | meta/recipes-connectivity/dhcp/files/dhclient-systemd-wrapper | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/meta/recipes-connectivity/dhcp/files/dhclient-systemd-wrapper b/meta/recipes-connectivity/dhcp/files/dhclient-systemd-wrapper deleted file mode 100644 index 7d0e224a1d..0000000000 --- a/meta/recipes-connectivity/dhcp/files/dhclient-systemd-wrapper +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | # In case the interface is used for nfs, skip it. | ||
4 | nfsroot=0 | ||
5 | interfaces="" | ||
6 | exec 9<&0 < /proc/mounts | ||
7 | while read dev mtpt fstype rest; do | ||
8 | if test $mtpt = "/" ; then | ||
9 | case $fstype in | ||
10 | nfs | nfs4) | ||
11 | nfsroot=1 | ||
12 | nfs_addr=`echo $rest | sed -e 's/^.*addr=\([0-9.]*\).*$/\1/'` | ||
13 | break | ||
14 | ;; | ||
15 | *) | ||
16 | ;; | ||
17 | esac | ||
18 | fi | ||
19 | done | ||
20 | exec 0<&9 9<&- | ||
21 | |||
22 | if [ $nfsroot -eq 0 ]; then | ||
23 | interfaces="$INTERFACES" | ||
24 | else | ||
25 | if [ -x /bin/ip -o -x /sbin/ip ] ; then | ||
26 | nfs_iface=`ip route get $nfs_addr | grep dev | sed -e 's/^.*dev \([-a-z0-9.]*\).*$/\1/'` | ||
27 | fi | ||
28 | for i in $INTERFACES; do | ||
29 | if test "x$i" = "x$nfs_iface"; then | ||
30 | echo "dhclient skipping nfsroot interface $i" | ||
31 | else | ||
32 | interfaces="$interfaces $i" | ||
33 | fi | ||
34 | done | ||
35 | fi | ||
36 | |||
37 | if test "x$interfaces" != "x"; then | ||
38 | /sbin/dhclient -d -cf /etc/dhcp/dhclient.conf -q -lf /var/lib/dhcp/dhclient.leases $interfaces | ||
39 | fi | ||