aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifdown-eth
diff options
context:
space:
mode:
authorDavid Kaspar [Dee'Kej] <dkaspar@redhat.com>2016-10-11 17:13:32 +0200
committerLukáš Nykrýn <lnykryn@redhat.com>2016-10-12 22:00:19 +0200
commit92520debcad27eca08507fe47486ae7ee9df484b (patch)
treea1b3d582c262b6dca7e3b28ae6b4191e159980c2 /sysconfig/network-scripts/ifdown-eth
parentc43cefb7afbb096ca572b07bf03760e7eab74804 (diff)
downloadinitscripts-92520debcad27eca08507fe47486ae7ee9df484b.tar
initscripts-92520debcad27eca08507fe47486ae7ee9df484b.tar.gz
initscripts-92520debcad27eca08507fe47486ae7ee9df484b.tar.bz2
initscripts-92520debcad27eca08507fe47486ae7ee9df484b.tar.xz
initscripts-92520debcad27eca08507fe47486ae7ee9df484b.zip
Use the is_true() and is_false() functions where possible
Diffstat (limited to 'sysconfig/network-scripts/ifdown-eth')
-rwxr-xr-xsysconfig/network-scripts/ifdown-eth2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifdown-eth b/sysconfig/network-scripts/ifdown-eth
index ab3507c0..23038e54 100755
--- a/sysconfig/network-scripts/ifdown-eth
+++ b/sysconfig/network-scripts/ifdown-eth
@@ -91,7 +91,7 @@ for VER in "" 6 ; do
if [ -f "/var/run/dhclient$VER-${DEVICE}.pid" ]; then
dhcpid=$(cat /var/run/dhclient$VER-${DEVICE}.pid)
generate_lease_file_name $VER
- if [[ "$DHCPRELEASE" = [yY1]* ]]; then
+ if is_true "$DHCPRELEASE"; then
/sbin/dhclient -r -lf ${LEASEFILE} -pf /var/run/dhclient$VER-${DEVICE}.pid ${DEVICE} >/dev/null 2>&1
retcode=$?
else