mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-07 16:59:18 +00:00
Changes from alex validated
git-svn-id: https://svn.fhem.de/fhem/trunk@722 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
cd84f2ad09
commit
032ef3614b
@ -1,6 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
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
|
||||
@ -13,3 +14,7 @@ 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
|
||||
|
@ -3,9 +3,9 @@
|
||||
set -e
|
||||
|
||||
if pgrep fhem.pl >/dev/null; then
|
||||
if test -x /sbin/initctl; then
|
||||
initctl stop fhem
|
||||
else
|
||||
invoke-rc.d fhem stop
|
||||
fi
|
||||
if test -x /sbin/initctl; then
|
||||
initctl stop fhem
|
||||
else
|
||||
invoke-rc.d fhem stop
|
||||
fi
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user