mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-05-17 19:57:18 +00:00
e239e04843
Replace backtick command substitutions with $(), quote variable
expansions to prevent word splitting, replace useless cat pipes with
redirections, use grep -q instead of redirecting to /dev/null, and use
bash parameter expansion for case conversion.
Based on the work from PR #6366, rebased and adapted to current master.
Shebangs already merged separately via df64bf8fe are excluded.
Co-Authored-By: Samveen <samveen@yahoo.com>
43 lines
686 B
Bash
Executable File
43 lines
686 B
Bash
Executable File
#!/bin/sh
|
|
|
|
#set -x
|
|
|
|
#################################################################################
|
|
# Load functions and variables
|
|
#
|
|
. /etc/init.d/functions
|
|
#
|
|
################################################################################
|
|
|
|
#################################################################################
|
|
#
|
|
# main
|
|
#
|
|
{
|
|
|
|
ping_test
|
|
|
|
get_scripts_directory
|
|
|
|
if [ ! -z "$HOSTNAME" ]; then
|
|
logmsg
|
|
logmsg "This hosts name is: $HOSTNAME"
|
|
fi
|
|
|
|
run_pre_install_scripts
|
|
|
|
choose_autoinstall_script
|
|
|
|
write_variables
|
|
beep
|
|
|
|
run_autoinstall_script
|
|
|
|
} 2>&1 | send_monitor_stdout
|
|
|
|
#
|
|
#################################################################################
|
|
|
|
exit 0
|
|
|