rmm-scripts/das_fanctl.sh
2024-08-10 12:03:21 -07:00

18 lines
339 B
Bash
Executable File

#/bin/bash
#Zebra
#Dell MD1200 Fan Silencing Script.
#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)
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