mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
revert script changes
Former-commit-id: 98b2d971b780ccae61cc01b9da1a339ed5799b19
This commit is contained in:
parent
89a8e6c6e5
commit
f4c07f6c83
@ -63,10 +63,10 @@ elif [ $USE_SERVICE -eq 1 ]; then
|
|||||||
/usr/sbin/service hyperion stop 2>/dev/null
|
/usr/sbin/service hyperion stop 2>/dev/null
|
||||||
elif [ $USE_SYSTEMD -eq 1 ]; then
|
elif [ $USE_SYSTEMD -eq 1 ]; then
|
||||||
service hyperion stop 2>/dev/null
|
service hyperion stop 2>/dev/null
|
||||||
while [ $SERVICEC -le 20 ]; do
|
# while [ $SERVICEC -le 20 ]; do
|
||||||
service hyperion_fw$SERVICEC stop 2>/dev/null
|
# service hyperion_fw$SERVICEC stop 2>/dev/null
|
||||||
((SERVICEC++))
|
# ((SERVICEC++))
|
||||||
done
|
# done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#reset count
|
#reset count
|
||||||
@ -86,19 +86,19 @@ elif [ $USE_SYSTEMD -eq 1 ]; then
|
|||||||
# Delete and disable Hyperion systemd script
|
# Delete and disable Hyperion systemd script
|
||||||
echo '---> Delete and disable Hyperion systemd script'
|
echo '---> Delete and disable Hyperion systemd script'
|
||||||
systemctl disable hyperion.service
|
systemctl disable hyperion.service
|
||||||
while [ $SERVICEC -le 20 ]; do
|
# while [ $SERVICEC -le 20 ]; do
|
||||||
systemctl -q disable hyperion_fw$SERVICEC.service 2>/dev/null
|
# systemctl -q disable hyperion_fw$SERVICEC.service 2>/dev/null
|
||||||
((SERVICEC++))
|
# ((SERVICEC++))
|
||||||
done
|
# done
|
||||||
rm -v /etc/systemd/system/hyperion* 2>/dev/null
|
rm -v /etc/systemd/system/hyperion* 2>/dev/null
|
||||||
elif [ $USE_SERVICE -eq 1 ]; then
|
elif [ $USE_SERVICE -eq 1 ]; then
|
||||||
# Delete and disable Hyperion init.d script
|
# Delete and disable Hyperion init.d script
|
||||||
echo '---> Delete and disable Hyperion init.d script'
|
echo '---> Delete and disable Hyperion init.d script'
|
||||||
update-rc.d -f hyperion remove
|
update-rc.d -f hyperion remove
|
||||||
while [ $SERVICEC -le 20 ]; do
|
# while [ $SERVICEC -le 20 ]; do
|
||||||
update-rc.d -f hyperion_fw$SERVICEC remove 2>/dev/null
|
# update-rc.d -f hyperion_fw$SERVICEC remove 2>/dev/null
|
||||||
((SERVICEC++))
|
# ((SERVICEC++))
|
||||||
done
|
# done
|
||||||
rm /etc/init.d/hyperion* 2>/dev/null
|
rm /etc/init.d/hyperion* 2>/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user