SHA256
1
0
forked from pool/dhcp

- fix bashisms in dhcprelay script

OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=144
This commit is contained in:
Marius Tomaschewski 2014-12-10 14:52:11 +00:00 committed by Git OBS Bridge
parent 68ca1863f7
commit 8c2a607d37
2 changed files with 10 additions and 3 deletions

View File

@ -6,6 +6,11 @@ Wed Dec 10 12:52:03 UTC 2014 - mt@suse.de
by the infiniband support patch (bsc#909189,bsc#870535).
[+ 0027-dhcp-4.2.x-handle-ifa_addr-NULL.909189.patch]
-------------------------------------------------------------------
Tue Dec 09 19:25:00 UTC 2014 - Led <ledest@gmail.com>
- fix bashisms in dhcprelay script
-------------------------------------------------------------------
Thu Nov 20 11:43:07 UTC 2014 - mt@suse.de

View File

@ -130,9 +130,11 @@ case "$1" in
# startproc should return 0, even if service is
# already running to match LSB spec.
test "$2" = "-v" && echo -en \
"\nexecuting '$DAEMON_BIN $DHCPv_OPT $DHCRELAY_OPTIONS $DHCRELAY_ARGS'"
startproc -q -l $STARTPROC_LOGFILE -p $DAEMON_PIDFILE $DAEMON_BIN $DHCPv_OPT $DHCRELAY_OPTIONS $DHCRELAY_ARGS &>/dev/null
if [ "$2" = "-v" ]; then
echo
echo -n "executing '$DAEMON_BIN $DHCPv_OPT $DHCRELAY_OPTIONS $DHCRELAY_ARGS'"
fi
startproc -q -l $STARTPROC_LOGFILE -p $DAEMON_PIDFILE $DAEMON_BIN $DHCPv_OPT $DHCRELAY_OPTIONS $DHCRELAY_ARGS >/dev/null 2>&1
rc=$?
if ! [ $rc -eq 0 ]; then
## be verbose