Line 1... |
Line 1... |
1 |
#!/bin/sh
|
1 |
#!/bin/sh
|
2 |
# $Id: alcasar-uninstall.sh 534 2011-04-07 21:46:35Z richard $
|
2 |
# $Id: alcasar-uninstall.sh 604 2011-05-15 21:23:10Z richard $
|
3 |
|
3 |
|
4 |
# alcasar-uninstall.sh
|
4 |
# alcasar-uninstall.sh
|
5 |
# by 3abtux, angel95 and rexy
|
5 |
# by 3abtux, angel95 and rexy
|
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 112... |
Line 112... |
112 |
userdel -r havp 2>/dev/null && echo -n "3"
|
112 |
userdel -r havp 2>/dev/null && echo -n "3"
|
113 |
else echo -n "uninstalled"
|
113 |
else echo -n "uninstalled"
|
114 |
fi
|
114 |
fi
|
115 |
sleep 1
|
115 |
sleep 1
|
116 |
|
116 |
|
117 |
#firewall
|
- |
|
118 |
echo -en "\n- firewall(1) : "
|
- |
|
119 |
[ -e /etc/sysconfig/iptables ] && rm -f /etc/sysconfig/iptables && echo -n "1"
|
- |
|
120 |
sleep 1
|
- |
|
121 |
|
- |
|
122 |
#param_ulogd
|
117 |
#param_ulogd
|
123 |
echo -en "\n- ulogd(2) : "
|
118 |
echo -en "\n- ulogd(2) : "
|
124 |
if [ -e /etc/init.d/ulogd.default ]
|
119 |
if [ -e /etc/init.d/ulogd.default ]
|
125 |
then
|
120 |
then
|
126 |
mv -f /etc/init.d/ulogd.default /etc/init.d/ulogd && echo -n "1, "
|
121 |
mv -f /etc/init.d/ulogd.default /etc/init.d/ulogd && echo -n "1, "
|
Line 176... |
Line 171... |
176 |
[ -e /etc/cron.d/coova ] && rm -f /etc/cron.d/coova && echo -n "8, "
|
171 |
[ -e /etc/cron.d/coova ] && rm -f /etc/cron.d/coova && echo -n "8, "
|
177 |
[ -e /etc/cron.d/watchdog ] && rm -f /etc/cron.d/watchdog && echo -n "9"
|
172 |
[ -e /etc/cron.d/watchdog ] && rm -f /etc/cron.d/watchdog && echo -n "9"
|
178 |
sleep 1
|
173 |
sleep 1
|
179 |
|
174 |
|
180 |
# network
|
175 |
# network
|
181 |
echo -en "\n- network(7) : "
|
176 |
echo -en "\n- network(8) : "
|
182 |
hostname localhost
|
177 |
hostname localhost
|
183 |
/sbin/ifdown eth0
|
178 |
/sbin/ifdown eth0
|
184 |
[ -e /etc/sysconfig/network-scripts/default-ifcfg-eth0 ] && mv /etc/sysconfig/network-scripts/default-ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0 && echo -n "1, "
|
179 |
[ -e /etc/sysconfig/network-scripts/default-ifcfg-eth0 ] && mv /etc/sysconfig/network-scripts/default-ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0 && echo -n "1, "
|
185 |
[ -e /etc/sysconfig/network.default ] && mv /etc/sysconfig/network.default /etc/sysconfig/network && echo -n "2, "
|
180 |
[ -e /etc/sysconfig/network.default ] && mv /etc/sysconfig/network.default /etc/sysconfig/network && echo -n "2, "
|
186 |
[ -e /etc/hosts.default ] && mv /etc/hosts.default /etc/hosts && echo -n "3, "
|
181 |
[ -e /etc/hosts.default ] && mv /etc/hosts.default /etc/hosts && echo -n "3, "
|
187 |
[ -e /etc/sysconfig/network-scripts/ifcfg-eth1 ] && rm -f /etc/sysconfig/network-scripts/ifcfg-eth1 && echo -n "4, "
|
182 |
[ -e /etc/sysconfig/network-scripts/ifcfg-eth1 ] && rm -f /etc/sysconfig/network-scripts/ifcfg-eth1 && echo -n "4, "
|
188 |
[ -e /etc/ntp.conf.default ] && mv /etc/ntp.conf.default /etc/ntp.conf && echo -n "5, "
|
183 |
[ -e /etc/ntp.conf.default ] && mv /etc/ntp.conf.default /etc/ntp.conf && echo -n "5, "
|
189 |
[ -e /etc/hosts.allow.default ] && mv /etc/hosts.allow.default /etc/hosts.allow && echo -n "6, "
|
184 |
[ -e /etc/hosts.allow.default ] && mv /etc/hosts.allow.default /etc/hosts.allow && echo -n "6, "
|
190 |
[ -e /etc/hosts.deny.default ] && mv /etc/hosts.deny.default /etc/hosts.deny && echo -n "7"
|
185 |
[ -e /etc/hosts.deny.default ] && mv /etc/hosts.deny.default /etc/hosts.deny && echo -n "7, "
|
- |
|
186 |
[ -e /etc/sysconfig/iptables ] && rm -f /etc/sysconfig/iptables && echo -n "8"
|
191 |
echo
|
187 |
echo
|
192 |
/sbin/ifup eth0
|
188 |
/sbin/ifup eth0
|
193 |
sleep 1
|
189 |
sleep 1
|
194 |
|
190 |
|
195 |
#post_install
|
191 |
#post_install
|