From e7d4696c696f11419903f455fe4d2809e7f4194f Mon Sep 17 00:00:00 2001 From: bp-sawyers Date: Fri, 4 Jun 2010 20:36:55 +0000 Subject: [PATCH] Fixed bug 3011426 (var MYNAME undefined) git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6360 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/netboot/add-on/statelite/add_passwd | 2 ++ xCAT-server/share/xcat/netboot/add-on/statelite/add_ssh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/xCAT-server/share/xcat/netboot/add-on/statelite/add_passwd b/xCAT-server/share/xcat/netboot/add-on/statelite/add_passwd index e413e906b..fcc1f097d 100755 --- a/xCAT-server/share/xcat/netboot/add-on/statelite/add_passwd +++ b/xCAT-server/share/xcat/netboot/add-on/statelite/add_passwd @@ -1,5 +1,7 @@ #!/bin/sh +MYNAME="${MYNAME:-${0##*/}}" + function usage { echo echo "Usage: $MYNAME netboot_rootdir " diff --git a/xCAT-server/share/xcat/netboot/add-on/statelite/add_ssh b/xCAT-server/share/xcat/netboot/add-on/statelite/add_ssh index 5b74bd06d..26a21f6f3 100755 --- a/xCAT-server/share/xcat/netboot/add-on/statelite/add_ssh +++ b/xCAT-server/share/xcat/netboot/add-on/statelite/add_ssh @@ -1,5 +1,7 @@ #!/bin/sh +MYNAME="${MYNAME:-${0##*/}}" + function usage { echo echo "Usage: $MYNAME netboot_rootdir "