Subversion Repositories ALCASAR

Rev

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

Rev 1799 Rev 1801
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-urpmi.sh 1799 2016-02-28 12:15:23Z richard $
2
# $Id: alcasar-urpmi.sh 1801 2016-02-28 21:04:10Z richard $
3
 
3
 
4
# alcasar-urpmi.sh
4
# alcasar-urpmi.sh
5
# by 3abtux and Rexy
5
# by 3abtux 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 201... Line 201...
201
	rpm_error
201
	rpm_error
202
	exit 1
202
	exit 1
203
fi
203
fi
204
 
204
 
205
# Keep only the kernel version we compil netflow with, and remove all others
205
# Keep only the kernel version we compil netflow with, and remove all others
206
kernelVersion=$(rpm -qa | grep "^kernel-")
206
kernelVersion=$(rpm -qa | grep -e ^kernel-server -e ^kernel-desktop)
207
for i in $kernelVersion
207
for i in $kernelVersion
208
do
208
do
209
	if [ ! $i = $KERNEL ];then
209
	if [ $i != $KERNEL ];then
210
		urpme --auto $i
210
		urpme --auto $i
211
	fi
211
	fi
212
done
212
done
213
 
-
 
214
# delete unused RPMs
213
# delete unused RPMs
215
if [ $Lang == "fr" ]
214
if [ $Lang == "fr" ]
216
then
215
then
217
	echo "Cleaning the system : "
216
	echo "Cleaning the system : "
218
else
217
else