From ed3a3bdcda3e3d13a0ee97b3b97cc778ca5b192b Mon Sep 17 00:00:00 2001 From: immarvin Date: Mon, 3 Aug 2015 23:28:43 -0400 Subject: [PATCH] only add the patch for initqueue --online option,keep other things untouch --- .../xcat/netboot/sles/dracut_033/patch/base/initqueue.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT-server/share/xcat/netboot/sles/dracut_033/patch/base/initqueue.sh b/xCAT-server/share/xcat/netboot/sles/dracut_033/patch/base/initqueue.sh index f85e6d6a9..48b4ca20b 100755 --- a/xCAT-server/share/xcat/netboot/sles/dracut_033/patch/base/initqueue.sh +++ b/xCAT-server/share/xcat/netboot/sles/dracut_033/patch/base/initqueue.sh @@ -46,6 +46,10 @@ exe=$1 shift [ -x "$exe" ] || exe=$(command -v $exe) +if [ -z "$exe" ] ; then + echo "Invalid command" + exit 1 +fi { [ -n "$onetime" ] && echo '[ -e "$job" ] && rm -f -- "$job"'