2024-08-10 19:03:21 +00:00
|
|
|
#/bin/bash
|
|
|
|
|
|
|
|
#Zebra
|
|
|
|
#Dell MD1200 Fan Silencing Script.
|
2024-08-10 20:13:23 +00:00
|
|
|
#MD1200 must be connected to a serial port using a Dell Password Reset Cable.
|
|
|
|
#P/N CT109 0MN657
|
|
|
|
|
2024-08-10 19:03:21 +00:00
|
|
|
|
|
|
|
#set TTY Flags
|
|
|
|
stty -F /dev/ttyS1 38400 raw -echoe -echok -echoctl -echoke
|
|
|
|
|
|
|
|
#Run 12 times, sleeping 5 seconds in between (total runtime: 1 min)
|
2024-08-10 20:13:23 +00:00
|
|
|
#Comment the for loop out if you only want to run once. I set it to run for 1 min so I could crontab it.
|
2024-08-10 19:03:21 +00:00
|
|
|
for i in $(seq 1 12)
|
|
|
|
do
|
|
|
|
|
|
|
|
#Change the value vv here to set fan percentage
|
|
|
|
echo -e -n '_shutup 15\r' > /dev/ttyS1
|
|
|
|
sleep 5
|
|
|
|
done
|