1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#!/bin/bash post_install() { echo "" echo "==> Configure your /etc/smart.conf config file and then" echo "==> $ sudo add_service.sh smartd" echo "==> to start the monitoring service." } post_upgrade() { post_install } pre_remove() { if [ -L /service/smartd ]; then remove_service.sh smartd fi }