Line 1... |
Line 1... |
1 |
#!/bin/sh
|
1 |
#!/bin/sh
|
2 |
# $Id: alcasar-uninstall.sh 306 2010-10-13 22:08:04Z richard $
|
2 |
# $Id: alcasar-uninstall.sh 310 2010-11-05 17:01:52Z 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 |
SED="/bin/sed -i"
|
7 |
SED="/bin/sed -i"
|
Line 159... |
Line 159... |
159 |
[ -e /etc/cron.d/coova ] && rm -f /etc/cron.d/coova && echo -n "8, "
|
159 |
[ -e /etc/cron.d/coova ] && rm -f /etc/cron.d/coova && echo -n "8, "
|
160 |
[ -e /etc/cron.d/watchdog ] && rm -f /etc/cron.d/watchdog && echo -n "9"
|
160 |
[ -e /etc/cron.d/watchdog ] && rm -f /etc/cron.d/watchdog && echo -n "9"
|
161 |
sleep 1
|
161 |
sleep 1
|
162 |
|
162 |
|
163 |
# network
|
163 |
# network
|
164 |
echo -en "\n- network(9) : "
|
164 |
echo -en "\n- network(7) : "
|
165 |
hostname localhost
|
165 |
hostname localhost
|
166 |
/sbin/ifdown eth0
|
166 |
/sbin/ifdown eth0
|
167 |
/sbin/ifdown eth1
|
167 |
/sbin/ifdown eth1
|
168 |
[ -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, "
|
168 |
[ -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, "
|
169 |
[ -e /etc/sysconfig/network.default ] && mv /etc/sysconfig/network.default /etc/sysconfig/network && echo -n "2, "
|
169 |
[ -e /etc/sysconfig/network.default ] && mv /etc/sysconfig/network.default /etc/sysconfig/network && echo -n "2, "
|
170 |
[ -e /etc/hosts.default ] && mv /etc/hosts.default /etc/hosts && echo -n "3, "
|
170 |
[ -e /etc/hosts.default ] && mv /etc/hosts.default /etc/hosts && echo -n "3, "
|
171 |
[ -e /etc/sysconfig/network-scripts/ifcfg-eth1 ] && rm -f /etc/sysconfig/network-scripts/ifcfg-eth1 && echo -n "4, "
|
171 |
[ -e /etc/sysconfig/network-scripts/ifcfg-eth1 ] && rm -f /etc/sysconfig/network-scripts/ifcfg-eth1 && echo -n "4, "
|
172 |
[ -e /etc/ntp.conf.default ] && mv /etc/ntp.conf.default /etc/ntp.conf && echo -n "5, "
|
172 |
[ -e /etc/ntp.conf.default ] && mv /etc/ntp.conf.default /etc/ntp.conf && echo -n "5, "
|
173 |
[ -e /etc/dhcpd.conf.default ] && mv /etc/dhcpd.conf.default /etc/dhcpd.conf && echo -n "6, "
|
- |
|
174 |
[ -e /etc/sysconfig/dhcpd.default ] && mv /etc/sysconfig/dhcpd.default /etc/sysconfig/dhcpd && echo -n "7, "
|
- |
|
175 |
[ -e /etc/hosts.allow.default ] && mv /etc/hosts.allow.default /etc/hosts.allow && echo -n "8, "
|
173 |
[ -e /etc/hosts.allow.default ] && mv /etc/hosts.allow.default /etc/hosts.allow && echo -n "6, "
|
176 |
[ -e /etc/hosts.deny.default ] && mv /etc/hosts.deny.default /etc/hosts.deny && echo -n "9"
|
174 |
[ -e /etc/hosts.deny.default ] && mv /etc/hosts.deny.default /etc/hosts.deny && echo -n "7"
|
- |
|
175 |
echo
|
177 |
/sbin/ifup eth0
|
176 |
/sbin/ifup eth0
|
178 |
sleep 1
|
177 |
sleep 1
|
179 |
|
178 |
|
180 |
#post_install
|
179 |
#post_install
|
181 |
echo -en "\n- post_install(10) : "
|
180 |
echo -en "\n- post_install(10) : "
|