Line 1... |
Line 1... |
1 |
#!/bin/sh
|
1 |
#!/bin/sh
|
2 |
# $Id: alcasar-uninstall.sh 303 2010-10-09 16:41:23Z richard $
|
2 |
# $Id: alcasar-uninstall.sh 305 2010-10-11 22:01:42Z 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 166... |
Line 166... |
166 |
[ -e /etc/cron.d/coova ] && rm -f /etc/cron.d/coova && echo -n "8, "
|
166 |
[ -e /etc/cron.d/coova ] && rm -f /etc/cron.d/coova && echo -n "8, "
|
167 |
[ -e /etc/cron.d/watchdog ] && rm -f /etc/cron.d/watchdog && echo -n "9"
|
167 |
[ -e /etc/cron.d/watchdog ] && rm -f /etc/cron.d/watchdog && echo -n "9"
|
168 |
sleep 1
|
168 |
sleep 1
|
169 |
|
169 |
|
170 |
# network
|
170 |
# network
|
- |
|
171 |
/etc/init.d/network stop
|
171 |
echo -en "\n- network(9) : "
|
172 |
echo -en "\n- network(9) : "
|
172 |
hostname localhost
|
173 |
hostname localhost
|
173 |
/etc/init.d/network stop
|
- |
|
174 |
[ -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, "
|
174 |
[ -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, "
|
175 |
[ -e /etc/sysconfig/network.default ] && mv /etc/sysconfig/network.default /etc/sysconfig/network && echo -n "2, "
|
175 |
[ -e /etc/sysconfig/network.default ] && mv /etc/sysconfig/network.default /etc/sysconfig/network && echo -n "2, "
|
176 |
[ -e /etc/hosts.default ] && mv /etc/hosts.default /etc/hosts && echo -n "3, "
|
176 |
[ -e /etc/hosts.default ] && mv /etc/hosts.default /etc/hosts && echo -n "3, "
|
177 |
[ -e /etc/sysconfig/network-scripts/ifcfg-eth1 ] && rm -f /etc/sysconfig/network-scripts/ifcfg-eth1 && echo -n "4, "
|
177 |
[ -e /etc/sysconfig/network-scripts/ifcfg-eth1 ] && rm -f /etc/sysconfig/network-scripts/ifcfg-eth1 && echo -n "4, "
|
178 |
[ -e /etc/ntp.conf.default ] && mv /etc/ntp.conf.default /etc/ntp.conf && echo -n "5, "
|
178 |
[ -e /etc/ntp.conf.default ] && mv /etc/ntp.conf.default /etc/ntp.conf && echo -n "5, "
|
Line 203... |
Line 203... |
203 |
do
|
203 |
do
|
204 |
/usr/sbin/urpme --auto $rm_rpm --auto-orphans 2>/dev/null
|
204 |
/usr/sbin/urpme --auto $rm_rpm --auto-orphans 2>/dev/null
|
205 |
done
|
205 |
done
|
206 |
echo
|
206 |
echo
|
207 |
/etc/init.d/network start
|
207 |
/etc/init.d/network start
|
- |
|
208 |
echo "Attente d'activation de la carte réseau eth0 ..."
|
208 |
|
209 |
sleep 5
|
209 |
|
210 |
|