git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@722 2b470e98-0d58-463d-a4d8-8e2adae1ed80
21 lines
386 B
Bash
Executable File
21 lines
386 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e # required by lintian
|
|
set +e # Don't know how to check presence of fhem in passwd with -e
|
|
|
|
if grep -q fhem /etc/passwd; then
|
|
userdel fhem
|
|
fi
|
|
|
|
if test -f /etc/init/fhem.conf; then
|
|
rm /etc/init/fhem.conf
|
|
fi
|
|
if test -f /etc/init.d/fhem; then
|
|
update-rc.d fhem remove
|
|
rm /etc/init.d/fhem
|
|
fi
|
|
|
|
if test ! -x /sbin/initctl; then
|
|
update-rc.d -f fhem remove
|
|
fi
|