mirror of
				https://github.com/That-Guy-Jack/HP-ILO-Fan-Control.git
				synced 2025-11-04 05:55:14 +00:00 
			
		
		
		
	Update Install.sh
This commit is contained in:
		
							
								
								
									
										51
									
								
								Install.sh
									
									
									
									
									
								
							
							
						
						
									
										51
									
								
								Install.sh
									
									
									
									
									
								
							@@ -1,4 +1,5 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
  GNU nano 4.8                                                                                       Install.sh                                                                                        Modified
 | 
			
		||||
##!/bin/bash
 | 
			
		||||
echo "You are about to Download/Install the required items for the HP ILO Fan control, "
 | 
			
		||||
echo "Do you accept that your are about to install? [yes] or [no] :"
 | 
			
		||||
read input
 | 
			
		||||
@@ -18,31 +19,29 @@ if [ $input = yes ] ; then
 | 
			
		||||
        wget https://raw.githubusercontent.com/That-Guy-Jack/HP-ILO-Fan-Control/main/Files/autofan.service
 | 
			
		||||
        echo "Finished making autofan.service"
 | 
			
		||||
        echo "Which server are you running? Dl360p (1) or the DL380p (2) [1] or [2] :"
 | 
			
		||||
        read server
 | 
			
		||||
        if [ $server = 1 ] ; then
 | 
			
		||||
                echo "Preping autofan.sh for DL360p "
 | 
			
		||||
                cd /
 | 
			
		||||
                echo "Downloading Latest autofan.sh"
 | 
			
		||||
                wget https://raw.githubusercontent.com/That-Guy-Jack/HP-ILO-Fan-Control/main/Files/autofan.sh
 | 
			
		||||
                echo "Downloaded autofan.sh Change Placeholders with correct info"
 | 
			
		||||
                echo "Please Visit the Github Page to Follow Instructions"
 | 
			
		||||
                echo "https://github.com/That-Guy-Jack/HP-ILO-Fan-Control"
 | 
			
		||||
                exit 1
 | 
			
		||||
        else if [ $server = 2 ] ; then
 | 
			
		||||
                echo "Preping autofan.sh for DL380p "
 | 
			
		||||
                cd /
 | 
			
		||||
                echo "Downloading Latest autofan.sh"
 | 
			
		||||
                wget https://raw.githubusercontent.com/That-Guy-Jack/HP-ILO-Fan-Control/main/Files/autofan-dl380p-g8.sh
 | 
			
		||||
                echo "Renaming File"
 | 
			
		||||
                mv autofan-dl380p-g8.sh autofan.sh
 | 
			
		||||
                echo "Downloaded autofan.sh Change Placeholders with correct info"
 | 
			
		||||
                echo "Please Visit the Github Page to Follow Instructions"
 | 
			
		||||
                echo "https://github.com/That-Guy-Jack/HP-ILO-Fan-Control"
 | 
			
		||||
                exit 1
 | 
			
		||||
        else 
 | 
			
		||||
        echo "incorrect answer :<"
 | 
			
		||||
        exit 1
 | 
			
		||||
                read server
 | 
			
		||||
                if [ $server = 1 ] ; then
 | 
			
		||||
                        echo "Preping autofan.sh for DL360p "
 | 
			
		||||
                        cd /
 | 
			
		||||
                        echo "Downloading Latest autofan.sh"
 | 
			
		||||
                        wget https://raw.githubusercontent.com/That-Guy-Jack/HP-ILO-Fan-Control/main/Files/autofan.sh
 | 
			
		||||
                        echo "Downloaded autofan.sh Change Placeholders with correct info"
 | 
			
		||||
                        echo "Please Visit the Github Page to Follow Instructions"
 | 
			
		||||
                        echo "https://github.com/That-Guy-Jack/HP-ILO-Fan-Control"
 | 
			
		||||
                        exit 1
 | 
			
		||||
                elif [ $server = 2 ] ; then
 | 
			
		||||
                        echo "Preping autofan.sh for DL380p "
 | 
			
		||||
                        cd /
 | 
			
		||||
                        echo "Downloading Latest autofan.sh"
 | 
			
		||||
                        wget https://raw.githubusercontent.com/That-Guy-Jack/HP-ILO-Fan-Control/main/Files/autofan-dl380p-g8.sh
 | 
			
		||||
                        echo "Renaming File"
 | 
			
		||||
                        mv autofan-dl380p-g8.sh autofan.sh
 | 
			
		||||
                        echo "Downloaded autofan.sh Change Placeholders with correct info"
 | 
			
		||||
                        echo "Please Visit the Github Page to Follow Instructions"
 | 
			
		||||
                        echo "https://github.com/That-Guy-Jack/HP-ILO-Fan-Control"
 | 
			
		||||
                        exit 1
 | 
			
		||||
                fi
 | 
			
		||||
else
 | 
			
		||||
   echo " :( exitting"
 | 
			
		||||
   exit 1
 | 
			
		||||
   fi
 | 
			
		||||
fi
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user