Subversion Repositories ALCASAR

Rev

Rev 3230 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 3230 Rev 3238
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-uninstall.sh 3230 2024-11-06 23:38:15Z rexy $
2
# $Id: alcasar-uninstall.sh 3238 2024-12-02 22:38:59Z rexy $
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 356... Line 356...
356
		read a
356
		read a
357
	fi
357
	fi
358
done
358
done
359
if [ $mode == "full" ]; then
359
if [ $mode == "full" ]; then
360
	echo -en "\n- network(10) : "
360
	echo -en "\n- network(10) : "
361
	hostnamectl set-hostname localhost.localdomain
361
	hostnamectl set-hostname localhost.lan
362
	chmod a-x /etc/sysconfig/network-scripts/default-*
362
	chmod a-x /etc/sysconfig/network-scripts/default-*
363
	i=0
363
	i=0
364
	for nic in `ls /etc/sysconfig/network-scripts/default-*|cut -d'-' -f4`
364
	for nic in `ls /etc/sysconfig/network-scripts/default-*|cut -d'-' -f4`
365
	do
365
	do
366
		i=`expr $i + 1`
366
		i=`expr $i + 1`