mirror of
https://github.com/That-Guy-Jack/HP-ILO-Fan-Control.git
synced 2025-12-22 08:13:26 +00:00
Added EXSI Support
Merged altered Scripts from PR8, added instructions from thomaswilbur's fork Co-Authored-By: Thomas Wilbur <thomaswilbur@adaclare.com>
This commit is contained in:
36
Install.sh
36
Install.sh
@@ -17,6 +17,36 @@ if [ $input = yes ] ; then
|
||||
cd /etc/systemd/system/
|
||||
wget https://raw.githubusercontent.com/That-Guy-Jack/HP-ILO-Fan-Control/main/Files/autofan.service
|
||||
echo "Finished making autofan.service"
|
||||
echo "Is Your host based on EXSI? (uses ILO temps over lm-sensors) [Y]/[N]"
|
||||
read exsi
|
||||
if [ $exsi = Y ]
|
||||
echo "Which server are you running? DL360p G8 (1) or DL380p G8 (2) [1] or [2] :"
|
||||
read server
|
||||
if [ $server = 1 ] ; then
|
||||
echo "Preping autofan.sh for DL360p G8"
|
||||
cd /
|
||||
echo "Downloading latest autofan.sh"
|
||||
wget https://raw.githubusercontent.com/That-Guy-Jack/HP-ILO-Fan-Control/main/Files/autofan-dl360p-g8-EXSI.sh
|
||||
echo "Downloaded autofan.sh, please change the placeholders with correct info"
|
||||
echo "Please cisit the GitHub page to follow the instructions!"
|
||||
echo "https://github.com/That-Guy-Jack/HP-ILO-Fan-Control"
|
||||
exit 1
|
||||
elif [ $server = 2 ] ; then
|
||||
echo "Preping autofan.sh for DL380p G8"
|
||||
cd /
|
||||
echo "Downloading latest autofan.sh for DL380p G8"
|
||||
wget https://raw.githubusercontent.com/That-Guy-Jack/HP-ILO-Fan-Control/main/Files/autofan-dl380p-g8-EXSI.sh
|
||||
echo "Renaming file"
|
||||
mv autofan-dl380p-g8.sh autofan.sh
|
||||
echo "Downloaded autofan.sh, please change the placeholders with correct info"
|
||||
echo "Please cisit the GitHub page to follow the instructions!"
|
||||
echo "https://github.com/That-Guy-Jack/HP-ILO-Fan-Control"
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo " :( exitting"
|
||||
exit 1
|
||||
else
|
||||
echo "Which server are you running? DL360p G8 (1) or DL380p G8 (2) [1] or [2] :"
|
||||
read server
|
||||
if [ $server = 1 ] ; then
|
||||
@@ -40,7 +70,7 @@ if [ $input = yes ] ; then
|
||||
echo "https://github.com/That-Guy-Jack/HP-ILO-Fan-Control"
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo " :( exitting"
|
||||
exit 1
|
||||
else
|
||||
echo " :( exitting"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user