Skip to content
Snippets Groups Projects
Commit d4492c53 authored by Natanael Copa's avatar Natanael Copa
Browse files

main/dhcp: use /bin/sh instead of bash in client-script

The script seems to be posix shell compatible so we only need to change
the shebang to #!/bin/sh

This way we avoid the bash dependency
parent 79de4cf4
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
pkgname=dhcp pkgname=dhcp
pkgver=4.4.1 pkgver=4.4.1
_realver=${pkgver/_p/-P} _realver=${pkgver/_p/-P}
pkgrel=0 pkgrel=1
pkgdesc="ISC Dynamic Host Configuration Protocol (DHCP)" pkgdesc="ISC Dynamic Host Configuration Protocol (DHCP)"
url="https://www.isc.org/" url="https://www.isc.org/"
arch="all" arch="all"
...@@ -64,7 +64,6 @@ package() { ...@@ -64,7 +64,6 @@ package() {
dhclient() { dhclient() {
pkgdesc="ISC dhcp client" pkgdesc="ISC dhcp client"
depends="bash"
install -d -o dhcp -g dhcp "$subpkgdir"/var/lib/dhcp install -d -o dhcp -g dhcp "$subpkgdir"/var/lib/dhcp
install -d -o dhcp -g dhcp "$subpkgdir"/var/run/dhcp install -d -o dhcp -g dhcp "$subpkgdir"/var/run/dhcp
install -d "$subpkgdir"/usr/sbin install -d "$subpkgdir"/usr/sbin
...@@ -89,7 +88,7 @@ dhcrelay() { ...@@ -89,7 +88,7 @@ dhcrelay() {
} }
sha512sums="684ae349f224918c9f8cec7bd6c55cd0b83ad2b5827375b2876ca088eb05b7ff1364e50f6dc24f2485c610d9be94d4ba3020f60a0fa0ef63962349d191b887e7 dhcp-4.4.1.tar.gz sha512sums="684ae349f224918c9f8cec7bd6c55cd0b83ad2b5827375b2876ca088eb05b7ff1364e50f6dc24f2485c610d9be94d4ba3020f60a0fa0ef63962349d191b887e7 dhcp-4.4.1.tar.gz
940ba576f9bfb395712e92e59c338428fe30f61da0ea0394f8f677c568322106556281fbb4528a33db7a039963ff892b4d6239aff9377d64927acc26f446c1a6 dhclient-script-fix-bare-ip.patch 65ddc66553f6f21184dd82baa929f2414b7374e9bafecc22f0d27a653f66796fbcb3a72d2f52af03a6993ce70e1b8dd0ab4fd630824b9a4825799bec190007fb dhclient-script-fix-bare-ip.patch
d5697a56fbbff25199962608986e7ffb533ed4afd3e344e3c79d2010dda73cc0b088f06c454e9f0c69eb054e09a374455fa71d3f73306e0c98fa76df4dd321b7 dhcp-3.0-fix-perms.patch d5697a56fbbff25199962608986e7ffb533ed4afd3e344e3c79d2010dda73cc0b088f06c454e9f0c69eb054e09a374455fa71d3f73306e0c98fa76df4dd321b7 dhcp-3.0-fix-perms.patch
0c3eee11ee9771a3bd7f8076827e57296136a36e6c00c3149e7274fb7a479feae4dc7d744f3c66ac78ffc96f036e14a7a5a0806095495441f98d76737a34faa6 dhcrelay.initd 0c3eee11ee9771a3bd7f8076827e57296136a36e6c00c3149e7274fb7a479feae4dc7d744f3c66ac78ffc96f036e14a7a5a0806095495441f98d76737a34faa6 dhcrelay.initd
fd15dbaa4c61c3c26f407bf13dde859470a1adba134da064b653ccc152ce42635ee8de2fe113ae21ba8470e97e3caad8c1a47b69eb25e5e92b40e26790b96f6d dhcrelay.confd fd15dbaa4c61c3c26f407bf13dde859470a1adba134da064b653ccc152ce42635ee8de2fe113ae21ba8470e97e3caad8c1a47b69eb25e5e92b40e26790b96f6d dhcrelay.confd
......
diff -ur a/client/scripts/linux b/client/scripts/linux diff --git a/client/scripts/linux b/client/scripts/linux
--- a/client/scripts/linux 2017-07-25 09:39:54.000000000 -0400 index 0c42969..3214eb6 100755
+++ b/client/scripts/linux 2018-01-23 08:17:42.569366100 -0500 --- a/client/scripts/linux
@@ -345,7 +345,7 @@ +++ b/client/scripts/linux
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
# dhclient-script for Linux. Dan Halbert, March, 1997.
# Updated for Linux 2.[12] by Brian J. Murrell, January 1999.
# No guarantees about this. I'm a novice at the details of Linux
@@ -394,7 +394,7 @@ case "$reason" in
make_resolv_conf make_resolv_conf
else else
# flush all IPs from interface # flush all IPs from interface
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment