From f4c07f6c83c1810d67134cef6107455fc2d937e2 Mon Sep 17 00:00:00 2001 From: brindosch Date: Wed, 4 May 2016 15:41:58 +0200 Subject: [PATCH] revert script changes Former-commit-id: 98b2d971b780ccae61cc01b9da1a339ed5799b19 --- bin/remove_hyperion.sh | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/bin/remove_hyperion.sh b/bin/remove_hyperion.sh index fafd0f99..7a828fd2 100644 --- a/bin/remove_hyperion.sh +++ b/bin/remove_hyperion.sh @@ -63,10 +63,10 @@ elif [ $USE_SERVICE -eq 1 ]; then /usr/sbin/service hyperion stop 2>/dev/null elif [ $USE_SYSTEMD -eq 1 ]; then service hyperion stop 2>/dev/null - while [ $SERVICEC -le 20 ]; do - service hyperion_fw$SERVICEC stop 2>/dev/null - ((SERVICEC++)) - done +# while [ $SERVICEC -le 20 ]; do +# service hyperion_fw$SERVICEC stop 2>/dev/null +# ((SERVICEC++)) +# done fi #reset count @@ -86,19 +86,19 @@ elif [ $USE_SYSTEMD -eq 1 ]; then # Delete and disable Hyperion systemd script echo '---> Delete and disable Hyperion systemd script' systemctl disable hyperion.service - while [ $SERVICEC -le 20 ]; do - systemctl -q disable hyperion_fw$SERVICEC.service 2>/dev/null - ((SERVICEC++)) - done +# while [ $SERVICEC -le 20 ]; do +# systemctl -q disable hyperion_fw$SERVICEC.service 2>/dev/null +# ((SERVICEC++)) +# done rm -v /etc/systemd/system/hyperion* 2>/dev/null elif [ $USE_SERVICE -eq 1 ]; then # Delete and disable Hyperion init.d script echo '---> Delete and disable Hyperion init.d script' update-rc.d -f hyperion remove - while [ $SERVICEC -le 20 ]; do - update-rc.d -f hyperion_fw$SERVICEC remove 2>/dev/null - ((SERVICEC++)) - done +# while [ $SERVICEC -le 20 ]; do +# update-rc.d -f hyperion_fw$SERVICEC remove 2>/dev/null +# ((SERVICEC++)) +# done rm /etc/init.d/hyperion* 2>/dev/null fi