Subversion Repositories ALCASAR

Rev

Rev 2597 | Rev 2689 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log

Rev 2597 Rev 2608
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-uninstall.sh 2597 2018-08-19 23:34:40Z tom.houdayer $
2
# $Id: alcasar-uninstall.sh 2608 2018-08-20 00:30:27Z tom.houdayer $
3
 
3
 
4
# alcasar-uninstall.sh
4
# alcasar-uninstall.sh
5
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
5
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
6
# This script is distributed under the Gnu General Public License (GPL)
6
# This script is distributed under the Gnu General Public License (GPL)
7
 
7
 
Line 202... Line 202...
202
        [ -e /lib/systemd/system/fail2ban.service.default ] && mv /lib/systemd/system/fail2ban.service.default /lib/systemd/system/fail2ban.service && echo -n "8"
202
        [ -e /lib/systemd/system/fail2ban.service.default ] && mv /lib/systemd/system/fail2ban.service.default /lib/systemd/system/fail2ban.service && echo -n "8"
203
}
203
}
204
 
204
 
205
gammu_smsd ()
205
gammu_smsd ()
206
{
206
{
207
        echo -en "(3) : "
207
        echo -en "(4) : "
208
        [ -e /etc/gammu_smsd_conf ] && rm -f /etc/gammu_smsd_conf && echo -n "1, "
208
        [ -e /etc/gammu_smsd_conf ] && rm -f /etc/gammu_smsd_conf && echo -n "1, "
209
        [ -e /lib/udev/rules.d/66-huawei.rules ] && rm -f /lib/udev/rules.d/66-huawei.rules && echo -n "2, "
209
        [ -e /lib/udev/rules.d/66-huawei.rules ] && rm -f /lib/udev/rules.d/66-huawei.rules && echo -n "2, "
210
        [ -e /var/log/gammu-smsd ] && rm -rf /var/log/gammu-smsd && echo -n "3"
210
        [ -e /var/log/gammu-smsd ] && rm -rf /var/log/gammu-smsd && echo -n "3, "
-
 
211
        userdel -r gammu_smsd 2>/dev/null && echo -n "4"
211
}
212
}
212
 
213
 
213
msec ()
214
msec ()
214
{
215
{
215
        echo -en "(2) : "
216
        echo -en "(2) : "