Subversion Repositories ALCASAR

Rev

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

Rev 2457 Rev 2458
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-uninstall.sh 2457 2017-12-10 14:11:01Z richard $
2
# $Id: alcasar-uninstall.sh 2458 2017-12-10 15:26:10Z richard $
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 300... Line 300...
300
for rm_fic in /usr/local/bin /usr/local/etc /usr/local/sbin
300
for rm_fic in /usr/local/bin /usr/local/etc /usr/local/sbin
301
do
301
do
302
	rm -rf $rm_fic/alcasar*
302
	rm -rf $rm_fic/alcasar*
303
done
303
done
304
/usr/bin/update-grub2
304
/usr/bin/update-grub2
-
 
305
 
-
 
306
if [ $mode == "full" ]
-
 
307
then
305
echo "Waiting for Network to be up again ..."
308
	echo -n "Waiting for Network to be up again : "
306
i=0
309
	i=0
307
while [ $i -lt 10 ] # We wait 10 seconds max
310
	while [ $i -lt 10 ] # We wait 10 seconds max
308
do
311
	do
-
 
312
		echo -n "."
309
	DNS1=`grep ^nameserver /etc/resolv.conf|awk -F" " '{print $2}'|head -n 1`
313
		DNS1=`grep ^nameserver /etc/resolv.conf|awk -F" " '{print $2}'|head -n 1`
310
	if [ "$DNS1" != "" ] && [ "$DNS1" != "127.0.0.1" ]
314
		if [ "$DNS1" != "" ] && [ "$DNS1" != "127.0.0.1" ]
311
	then
315
		then
312
		i=9
316
			i=9
-
 
317
			echo -n "ok"
313
	fi
318
		fi
314
	i=`expr $i + 1`
319
		i=`expr $i + 1`
315
	sleep 1
320
		sleep 1
316
done
321
	done
-
 
322
fi
-
 
323
echo