2010-08-02 12:47:55 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2010-09-30 13:34:09 +00:00
|
|
|
set -e # required by lintian
|
|
|
|
set +e # Don't know how to check presence of fhem in passwd with -e
|
2010-08-02 12:47:55 +00:00
|
|
|
|
|
|
|
if grep -q fhem /etc/passwd; then
|
2010-09-30 13:12:28 +00:00
|
|
|
userdel fhem
|
2010-08-02 12:47:55 +00:00
|
|
|
fi
|
2010-09-30 13:12:28 +00:00
|
|
|
|
2010-08-02 12:47:55 +00:00
|
|
|
if test -f /etc/init/fhem.conf; then
|
2010-09-30 13:12:28 +00:00
|
|
|
rm /etc/init/fhem.conf
|
|
|
|
fi
|
|
|
|
if test -f /etc/init.d/fhem; then
|
|
|
|
update-rc.d fhem remove
|
|
|
|
rm /etc/init.d/fhem
|
2010-08-02 12:47:55 +00:00
|
|
|
fi
|
2010-09-30 13:34:09 +00:00
|
|
|
|
|
|
|
if test ! -x /sbin/initctl; then
|
|
|
|
update-rc.d -f fhem remove
|
|
|
|
fi
|