Subversion Repositories ALCASAR

Rev

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

Rev 3179 Rev 3190
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-uninstall.sh 3179 2024-03-03 23:23:58Z rexy $
2
# $Id: alcasar-uninstall.sh 3190 2024-04-07 22:35:03Z 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 394... Line 394...
394
	sleep 1
394
	sleep 1
395
fi
395
fi
396
 
396
 
397
# Reset "skip.list" (we keep "kernel" in order not to download kernel we don't want to have)
397
# Reset "skip.list" (we keep "kernel" in order not to download kernel we don't want to have)
398
echo "/^kernel/" > /etc/urpmi/skip.list
398
echo "/^kernel/" > /etc/urpmi/skip.list
399
if [ `egrep '^exclude=' /etc/dnf/dnf.conf |wc -l` -eq "1" ]; then
399
if [ `grep -E '^exclude=' /etc/dnf/dnf.conf |wc -l` -eq "1" ]; then
400
	$SED "s?^exclude=.*?exclude=kernel\*?g" /etc/dnf/dnf.conf
400
	$SED "s?^exclude=.*?exclude=kernel\*?g" /etc/dnf/dnf.conf
401
else
401
else
402
	echo "exclude=kernel*" >> /etc/dnf/dnf.conf
402
	echo "exclude=kernel*" >> /etc/dnf/dnf.conf
403
fi
403
fi
404
# Cleaning (remove all "old" alcasar scripts)
404
# Cleaning (remove all "old" alcasar scripts)