版权属于:
乘风的博客
作品采用:
《
署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)
》许可协议授权
#复制以下代码使用root权限粘贴到ssh中。
#!/bin/bash
cat <<\EOF >/lib/systemd/system-shutdown/lenovo
#!/bin/bash
if [[ $1 = "halt" || $1 = "poweroff" ]]; then
sync
hdparm -y /dev/sda
hdparm -y /dev/sdb
hdparm -y /dev/sdc
sleep 5
echo 102 > /sys/class/gpio/export
echo high > /sys/class/gpio/gpio102/direction
fi
EOF
cat <<\EOF >/lib/systemd/system/fan.service
[Unit]
Description=The PWM fan Script
After=syslog.target
[Service]
Type=forking
PIDFile=/var/run/fan.pid
ExecStart=/bin/bash -c "/sbin/fan "&
ExecReload=/bin/kill -s HUP
ExecStop=/bin/kill -s QUIT
PrivateTmp=true
[Install]
WantedBy=multi-user.target
EOF
cat <<\EOF >/sbin/fan
#!/bin/bash
echo $ > /var/run/fan.pid
echo 85 > /sys/class/gpio/export
echo "high" > /sys/class/gpio/gpio85/direction
echo 85 > /sys/class/gpio/unexport
echo 79 > /sys/class/gpio/export
echo high > /sys/class/gpio/gpio79/direction
echo 0 > /sys/class/pwm/pwmchip0/export
echo 10000 > /sys/class/pwm/pwmchip0/pwm0/period
echo normal > /sys/class/pwm/pwmchip0/pwm0/polarity
echo 1 > /sys/class/pwm/pwmchip0/pwm0/enable
while true
do
temp=$(cat /sys/class/thermal/thermal_zone0/temp)
if [ $temp -gt 75000 ]; then
echo 10000 > /sys/class/pwm/pwmchip0/pwm0/duty_cycle;
elif [ $temp -gt 65000 ]; then
echo 6000 > /sys/class/pwm/pwmchip0/pwm0/duty_cycle;
elif [ $temp -gt 55000 ]; then
echo 2000 > /sys/class/pwm/pwmchip0/pwm0/duty_cycle;
else
echo 0 > /sys/class/pwm/pwmchip0/pwm0/duty_cycle;
fi
sleep 10
done
EOF
chmod +x /sbin/fan
systemctl enable fan.service
systemctl start fan.service
I've been exploring for a little for any high quality articles or weblog posts in this sort
of area . Exploring in Yahoo I at last stumbled upon this web site.
Studying this info So i am satisfied to show that I've a very excellent
uncanny feeling I discovered exactly what I needed. I such a lot undoubtedly will make sure to don?t disregard this site and
provides it a look on a continuing basis.
For newest news you have to pay a quick visit internet and on internet I found this web site as a best web site
for most up-to-date updates.
Hi, all is going well here and ofcourse every one is sharing facts, that's genuinely fine, keep up writing.
Hello would you mind stating which blog platform you're using?
I'm going to start my own blog in the near future
but I'm having a hard time deciding between BlogEngine/Wordpress/B2evolution and Drupal.
The reason I ask is because your design and style seems different
then most blogs and I'm looking for something unique.
P.S Sorry for being off-topic but I had to ask!
Hey there, I think your website might be having browser compatibility issues.
When I look at your blog in Opera, it looks fine but when opening in Internet Explorer,
it has some overlapping. I just wanted to give you a quick
heads up! Other then that, amazing blog!
Heya! I'm at work surfing around your blog from my new
iphone 4! Just wanted to say I love reading through your blog and look forward to all your posts!
Keep up the superb work!
Great post. I will be dealing with many of these issues as well..
I am extremely inspired along with your writing skills as well as with the structure in your weblog.
Is this a paid subject matter or did you customize it your self?
Either way stay up the excellent high quality writing,
it's uncommon to look a great weblog like this one nowadays..
Howdy! I could have sworn I've been to this site before
but after reading through some of the post I realized
it's new to me. Nonetheless, I'm definitely happy I found it and I'll be book-marking and checking back often!
Excellent web site. Plenty of useful information here.
I am sending it to some pals ans also sharing in delicious.
And certainly, thanks for your effort!
cialis back pain treatment cialis pharmacy cialis uk next day delivery
levitra 100mg guaranteed lowest price Influence of the oxidatively damaged adduct 8 oxodeoxyguanosine on the conformation, energetics, and thermodynamic stability of a DNA duplex
Clinical and biochemical evidence of growth hormone and prolactin excess should be assessed in all patients with thyrotropinomas cheap cialis generic online Dosage form injection, solution
Retaining fluid propecia for sale
Awesome post.
It is important for clinicians to recognize that health care disparities in transgender patient populations stem from more than sociodemographic factors levitra 40 mg isoniazid decreases levels of niacin by pharmacodynamic antagonism
real cialis no generic The therapeutic action of glucocorticoids occurs through binding to the intracellular glucocorticoid receptor GR and mineralocorticoid receptor MR 47, 48, mediating the transcription of pro inflammatory genes and regulating epidermal proliferation and differentiation 47, 49
cheap cialis online MuГ±oz Olmo L, Juan Armas J, Gomariz GarcГa JJ
Stepniewska K, Taylor WRJ, Mayxay M, Smithuis F, Guthmann J P, Barnes K, Myint H, Price R, Olliaro P, Pukrittayakamee S, Hien TT, Farrar J, Nosten F, Day NPJ, White NJ buy cialis generic
Derick ztEvObImsifxHbJFi 5 20 2022 cialis online pharmacy It is certainly something I see in my primary care practice
how to buy cialis As long as there is a company that wants to switch to passive components, Xingchen Technology will provide a full set of technical support
Over a year ago my wife suffered a seizure and a lesion was discovered in her right temporal lobe cialis order online
In contrast to this finding, we showed recently that the two mTOR inhibitors everolimus inhibitor of mTOR complex 1 and vistusertib AZD2014; inhibitor of mTOR complexes 1 and 2 do not affect binding of ER to chromatin despite robust inhibition of the mTOR pathway what is lasix used for in dogs have proposed that AMH that binds to its endometrial receptors might derive from autocrine or paracrine sources 12
buy cialis canada pharmacy 4 months to 8
Endocrine disorders best price propecia in uk
My family and I were in shock propecia help 5 mg 1 Oral Unither Pharmaceuticals 1973 11 27 2015 04 30 US Zaroxolyn Tablet 5 mg 1 Oral Physicians Total Care, Inc
is furosemide lasix Parenteral administration of penicillin G is indicated for pregnant women, even if desensitization of allergy is necessary
71 for the four category classification; Оє 0 priligy generika dapoxetine 60mg Recipient of the San Andreas Regional Center Annual Service Above Self Award for Community Service and the Miceli Financial Partners Disability Awareness Award
19 When antihypertensive therapy is used in women with preeclampsia, fetal monitoring is helpful to recognize any signs of fetal distress that might be attributable to reduced placental perfusion women viagra
azithromycin side effects 71 and 68 on FAC
Given the association of polymorphonuclear leukocytes PMNs with adenine nucleotide nucleoside signaling in the inflammatory milieu, we hypothesized that PMNs are a source of extracellular ATP cheap cialis PubMed 26845264
Among MBC patients, there are only few analyses of adherence to ET 15, 16, 28 lasix contraindications
During the hearing, there was testimony that the victim had pulled her hair out and there were pictures showing the hair on the floor clomiphene antiestrogen Pediatrics 2010 Oct; 22 5 626 34
stromectol 3 mg dosage 2018 Jun; 169 3 561 571
does doxycycline treat pneumonia The interim dividend increased by 14 per cent
820 DEXAPRON TECNOQUГЌMICAS 10 mg x 30 tabs long term side effects of tamoxifen
Golubnitschaja O, Yeghiazaryan K, Costigliola V, Trog D, Braun M, Debald M, et al priligy dapoxetine amazon For both, daily vitamin D and calcium supplementation are essential
stromectol sale These include, without limitation, marker or probe molecules which are immobilized through conjugation of biotin and streptavidin
is generic cialis available diclofenac santa rosa pharmacy Guidance calling on institutional investors to takeresponsibility for their voting decisions would go a long waytoward mitigating the concerns arising from the outsized andpotentially conflicted role of proxy advisory firms, he said
15 mol l lithium chloride LiCl in saline 26, 27 and subcutaneously with sesame oil containing 1 benzyl alcohol vehicle lasix and potassium levels
Endothelial injury and dysfunction are critical initiating events in the pathogenesis of atherosclerosis. doxycycline dosage for uti in adults Epub 2012 Jan 4.