Subversion Repositories ALCASAR

Rev

Rev 2206 | Rev 2212 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2206 Rev 2211
Line 1... Line 1...
1
 
1
 
2
#!/bin/bash
2
#!/bin/bash
3
# $Id: alcasar-uninstall.sh 2206 2017-05-06 17:58:56Z richard $
3
# $Id: alcasar-uninstall.sh 2211 2017-05-08 16:39:43Z richard $
4
 
4
 
5
# alcasar-uninstall.sh
5
# alcasar-uninstall.sh
6
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
6
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
7
# This script is distributed under the Gnu General Public License (GPL)
7
# This script is distributed under the Gnu General Public License (GPL)
8
 
8
 
Line 226... Line 226...
226
[ -e /etc/cron.d/alcasar-distrib-updates ] && rm -f /etc/cron.d/alcasar-distrib-updates && echo -n "6, "
226
[ -e /etc/cron.d/alcasar-distrib-updates ] && rm -f /etc/cron.d/alcasar-distrib-updates && echo -n "6, "
227
[ -e /etc/cron.d/alcasar-connections-stats ] && rm -f /etc/cron.d/alcasar-connections-stats && echo -n "7, "
227
[ -e /etc/cron.d/alcasar-connections-stats ] && rm -f /etc/cron.d/alcasar-connections-stats && echo -n "7, "
228
[ -e /etc/cron.d/alcasar-watchdog ] && rm -f /etc/cron.d/alcasar-watchdog && echo -n "8, "
228
[ -e /etc/cron.d/alcasar-watchdog ] && rm -f /etc/cron.d/alcasar-watchdog && echo -n "8, "
229
[ -e /etc/cron.d/alcasar-daemon-watchdog ] && rm -f /etc/cron.d/alcasar-daemon-watchdog && echo -n "9,"
229
[ -e /etc/cron.d/alcasar-daemon-watchdog ] && rm -f /etc/cron.d/alcasar-daemon-watchdog && echo -n "9,"
230
[ -e /etc/cron.d/alcasar-rsync-bl ] && rm -f /etc/cron.d/alcasar-rsync-bl && echo -n "10,"
230
[ -e /etc/cron.d/alcasar-rsync-bl ] && rm -f /etc/cron.d/alcasar-rsync-bl && echo -n "10,"
231
 
-
 
232
sleep 1
231
sleep 1
233
 
232
 
234
echo -en "\n- gammu-smsd(3) : "
233
echo -en "\n- gammu-smsd(3) : "
235
[ -e /etc/gammu_smsd_conf ] && rm -f /etc/gammu_smsd_conf && echo -n "1, "
234
[ -e /etc/gammu_smsd_conf ] && rm -f /etc/gammu_smsd_conf && echo -n "1, "
236
[ -e /etc/udev/rules.d/66-huawei.rules ] && rm -f /etc/udev/rules.d/66-huawei.rules && echo -n "2, "
235
[ -e /etc/udev/rules.d/66-huawei.rules ] && rm -f /etc/udev/rules.d/66-huawei.rules && echo -n "2, "
237
[ -e /var/log/gammu-smsd ] && rm -rf /var/log/gammu-smsd && echo -n "3"
236
[ -e /var/log/gammu-smsd ] && rm -rf /var/log/gammu-smsd && echo -n "3"
238
sleep 1
237
sleep 1
239
 
238
 
-
 
239
echo -en "\n- msec(2) : "
-
 
240
[ -e /etc/security/msec/security.conf.default ] && mv /etc/security/msec/security.conf.default /etc/security/msec/security.conf && echo -n "1, "
-
 
241
[ -e /etc/security/msec/perm.local ] && rm -f /etc/security/msec/perm.local && echo -n "2"
-
 
242
sleep 1
-
 
243
 
240
if [ mode == "full " ]
244
if [ mode == "full " ]
241
then
245
then
242
	echo -en "\n- network(9) : "
246
	echo -en "\n- network(9) : "
243
	hostname localhost
247
	hostname localhost
244
	CONF_FILE="/usr/local/etc/alcasar.conf"
248
	CONF_FILE="/usr/local/etc/alcasar.conf"