From acf879bfcc6724b43a470d7e1ffdef345a992e25 Mon Sep 17 00:00:00 2001 From: Erik Troan Date: Mon, 9 Mar 1998 22:16:33 +0000 Subject: added check for mktemp failure --- sysconfig/network-scripts/ifup | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup index 59d074cc..714d972c 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -77,7 +77,10 @@ if [ "$BOOTPROTO" = bootp -a "$ISALIAS" = no ]; then ifconfig ${DEVICE} 0.0.0.0 broadcast 255.255.255.255 netmask 0.0.0.0 route add default ${DEVICE} echo "Sending bootp request" - TMPFILE=`/bin/mktemp /tmp/bootp-${DEVICE}.XXXXXX` + TMPFILE=`/bin/mktemp /tmp/bootp-${DEVICE}.XXXXXX` || { + echo 'mktemp failed' + exit 1 + } bootpc --returniffail --timeoutwait 6 --dev ${DEVICE} 2>/dev/null > ${TMPFILE} if [ "$?" = "0" ]; then . ${TMPFILE} -- cgit v1.2.1