aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-01-12 20:15:07 +0000
committerBill Nottingham <notting@redhat.com>2005-01-12 20:15:07 +0000
commit67a6e2ecbd0e058cd000d9581061af80dfa5aa53 (patch)
treebe207493ab11b8e9c605258d83f77a15bef6099d
parent53fa2fa2eae40dabf50fc116033e401fcf04b363 (diff)
downloadinitscripts-67a6e2ecbd0e058cd000d9581061af80dfa5aa53.tar
initscripts-67a6e2ecbd0e058cd000d9581061af80dfa5aa53.tar.gz
initscripts-67a6e2ecbd0e058cd000d9581061af80dfa5aa53.tar.bz2
initscripts-67a6e2ecbd0e058cd000d9581061af80dfa5aa53.tar.xz
initscripts-67a6e2ecbd0e058cd000d9581061af80dfa5aa53.zip
fix syntax
-rwxr-xr-xsysconfig/network-scripts/ifdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown
index 3c64bf27..5bc8f5e8 100755
--- a/sysconfig/network-scripts/ifdown
+++ b/sysconfig/network-scripts/ifdown
@@ -83,7 +83,7 @@ retcode=0
if [ "$BOOTPROTO" = bootp -o "$BOOTPROTO" = dhcp ]; then
[ -n "`pidof -x dhclient`" ] && {
if [ -f "/var/run/dhclient-${DEVICE}.pid" ]; then
- if [ "$DHCPRELEASE" = [yY1]* ]; then
+ if [[ "$DHCPRELEASE" = [yY1]* ]]; then
/sbin/dhclient -r -lf /var/lib/dhcp/dhclient-${DEVICE}.leases -pf /var/run/dhclient-${DEVICE}.pid ${DEVICE} >/dev/null 2>&1
else
reason=STOP interface=${DEVICE} /sbin/dhclient-script