mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-22 19:20:24 +00:00
If TFTPDIR does not begin with /, correct it
TFTPDIR could be set without a leading /. Support this syntax by putting a slash in front and hoping for the best
This commit is contained in:
@@ -19,6 +19,9 @@ if [ -z "$TFTPDIR" ]; then
|
||||
|
||||
TFTPDIR="/tftpboot"
|
||||
fi
|
||||
if [[ $TFTPDIR != /* ]]; then
|
||||
TFTPDIR="/"$TFTPDIR
|
||||
fi
|
||||
|
||||
cd /tmp
|
||||
RAND=$(perl -e 'print int(rand(50)). "\n"')
|
||||
|
Reference in New Issue
Block a user