postrm 303 B

123456789101112131415161718
  1. #!/bin/bash
  2. #set -x
  3. set -e # required by lintian
  4. set +e # Don't know how to check presence of fhem in passwd with -e
  5. if grep -q fhem /etc/passwd; then
  6. userdel fhem
  7. fi
  8. if test -f /etc/init/fhem.conf; then
  9. rm /etc/init/fhem.conf
  10. fi
  11. if test -f /etc/init.d/fhem; then
  12. rm /etc/init.d/fhem
  13. fi