Skip to content

Instantly share code, notes, and snippets.

@symm
Created April 29, 2018 10:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save symm/e6a0a46801bbcc7de277b35a01d432a3 to your computer and use it in GitHub Desktop.
Save symm/e6a0a46801bbcc7de277b35a01d432a3 to your computer and use it in GitHub Desktop.
#!/bin/sh
# File: /usr/local/etc/rc.d/tler.sh
# Enable TLER for drives on boot of Synology
case $1 in
start)
smartctl -d sat -l scterc,70,70 /dev/sda
smartctl -d sat -l scterc,70,70 /dev/sdb
;;
stop)
echo .
;;
*)
echo "Usage: $0 [start|stop]"
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment