Aggancia questa barra allo schermo |  Disattiva gli effetti grafici

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.



Aggiornare Slackware


 

Automatizzare l'aggiornamento di Slackware current

Questo script provvede ad aggiornare Slackware o Slackware64 all'ultima current in maniera del tutto autonoma, dalla ricerca di aggiornamenti all'aggiornamento del bootloader.

script

Scarica la lista dei pacchetti e la confronta con quelli installati, dopodiché controlla se i nuovi pacchetti sono presenti in un eventuale DVD già montato altrimenti li scarica da internet.

Lo script può gestire anche un sistema multilib, infatti se trova già installati i pacchetti gcc e glibc multilib di Alien, provvede ad aggiornare questi invece di quelli ufficiali che non sono multilib.

Se sono presenti determinati pacchetti tra quelli da aggiornare, lo script mostra un avviso in cui dice di cambiare runlevel e di far ripartire l'aggiornamento, quindi si interrompe. Questo per evitare problemi con l'aggiornamento di pacchetti critici.

Poi esegue l'aggiornamento vero e proprio nell'ordine così come descritto sul file UPGRADE.TXT di Slackware e provvede a rimuovere eventuali pacchetti non più presenti sulla distribuzione.

A seguire abbiamo la sostituzione dei file di configurazione, non tutti quelli presenti in /etc, ma solo gli script di avvio in /etc/rc.d e se rileva che il kernel in uso non è personalizzato e allo stesso tempo tra i nuovi pacchetti ci sono anche quelli di un nuovo kernel, viene aggiornato il bootloader. Se si tratta di un kernel generic viene creato anche il file initrd.

slackup

#!/bin/sh
# Copyright (C) 2015-2022, Andrea Peluso <sya54m@gmail.com>
# Tutti i diritti riservati.
#
# ___ changelog ___
#
# 2.5.0 (23/09/2022)
# aggiunto supporto Slackware AArch64
#
# 2.4.0 (24/02/2022)
# aggiunto supporto Slackware stable
#
# 2.3.2 (16/02/2021)
# aggiornato per cambio nome di glibc-solibs
#
# 2.3.1 (25/11/2020)
# aggiunta sottodirectory input-methods in vtown
#
# 2.3.0 (05/11/2020)
# aggiunta gestione dei pacchetti KDE vtown
#
# 2.2.0 (12/12/2018)
# aggiunto supporto a slackwarearm
#
# 2.1.2 (07/04/2018)
# sostituito --caption con --title in kdialog
#
# 2.1.1 (08/05/2017)
# aggiornata selezione pacchetti rimossi
#
# 2.1.0 (01/02/2017)
# aggiunta controllo delle istanze in esecuzione
# aggiunta pulizia file temporanei in caso di interruzione
#
# 2.0.0 (30/01/2017)
# aggiunta gestione dei pacchetti KDE di alien
#
# 1.3.3 (25/01/2017)
# escluso glibc-zoneinfo dai pacchetti multilib
#
# 1.3.2 (21/05/2016)
# non disinstalla i pacchetti rimossi in current se presenti in whitelist
# aggiunto commento di esempio per KDE5
#
# 1.3.1 (10/03/2016)
# aggiunto whitelist
#
# 1.3.0 (09/03/2016)
# modificato separatore blacklist
# modificata selezione pacchetti kdei
# bugfix
#
# 1.2.2 (23/12/2015)
# migliorata rimozione vecchi pacchetti
#
# 1.2.1 (19/12/2015)
# bugfix
#
# 1.2.0 (15/12/2015)
# aggiunto supporto elilo
# bugfix
#
# 1.1.0 (22/11/2015)
# download separati nelle directory
# bugfix
#
# 1.0.0 (05/11/2015)
# prima versione

############################### Configurazione ################################
lng="it"  #codice lingua
MIRROR="http://ftp.slackware.com/pub/slackware"
#MIRROR="http://ftp.arm.slackware.com/slackwarearm"
VERSIONE="current" # current || 15.0 || 14.2
SOLOPATCH="no" # si || no
DVD="/media/SlackDVD"
tmp="/root/slackware"
KDE_testing="no"  # ktown || vtown || no
# separare con pipe: |
blacklist="kernel-source|hplip|bsd-games"
whitelist=""
###############################################################################

aiuto(){
	echo "Uso: $(basename $0)"
	echo "Procedura automatizzata per l'aggiornamento di Slackware."
	echo "Copyright (C) 2015-2022, Andrea Peluso."
	echo -e "\n  -v\tstampa le informazioni sulla versione ed esce"
	echo -e "  -h\tmostra questo aiuto ed esce"
	echo -e "\nSegnalare i bug di SlackUp a <sya54m@gmail.com>"
	echo -e "Sito web di SlackUp: <https://www.sya54m.eu/>\n"
}
if [ "$(whoami)" != "root" ]; then
	echo -e "Permesso negato: eseguire come root.\n"
	exit 1
fi
if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH="" ;;
    arm*) ARCH=arm ;;
    aarch64) ARCH=aarch64 ;;
       *) ARCH="" ;;
  esac
fi
if [ -d /usr/lib64 -a $ARCH != "aarch64" ]; then
	bit="64"
else
	bit=""
fi
PRGVER="2.5.0"
DVD="$DVD/slackware$bit"
LOCKFILE="/tmp/slackup.lock"
N=1
while [ $N -le 1 ]; do
	if [ ! -f $LOCKFILE.$N ]; then
		touch $LOCKFILE.$N
		break
	fi
	N=$[$N+1]
done
trap "{ rm -f $LOCKFILE.$N ; exit 255; }" EXIT
trap "{ rm -rf $tmp ; exit 255; }" SIGINT SIGTERM
if [ $N -gt 1 ]; then
	echo -e "Il programma è già in esecuzione.\nTermino."
	exit 1
fi
while :
do
	case "$1" in
	-v)
		echo -e "$(basename $0) $PRGVER\nCopyright (C) 2015-2022, Andrea Peluso."
		exit 0
	;;
	-h)
		aiuto
		exit 0
	;;
	-*)
		aiuto
		exit 1
	;;
	*)
		break
	;;
	esac
	shift
done
mkdir -p $tmp/a $tmp/ap $tmp/d $tmp/e $tmp/f $tmp/k $tmp/kde $tmp/kdei $tmp/l $tmp/n $tmp/t $tmp/tcl $tmp/x $tmp/xap $tmp/xfce $tmp/y
cd $tmp
utente=$(who |grep ":0" |cut -d" " -f1 |uniq)
if [ "$utente" != "root" -a -n "$DISPLAY" -a -n "`ls /var/log/packages/kde-base* 2> /dev/null`" ]; then
	cp /home/$utente/.Xauthority /root/.Xauthority
	export $(dbus-launch)
fi
patches3=()
if [ "$VERSIONE" != "current" ]; then
	mkdir -p $tmp/patches
	if [ ! -r FILE_LIST-patches ] || [ -r FILE_LIST-patches -a $(expr `date +%s` - `stat -c %Z FILE_LIST-patches`) -gt 43200 ]; then
		wget $MIRROR/slackware$bit$ARCH-$VERSIONE/patches/FILE_LIST -O FILE_LIST-patches || exit 1
	fi
	if [ -z "$whitelist" ]; then
		whitelist3="riempitorechenonpuoesistere"
	else
		whitelist3="$whitelist"
	fi
	patches0=(`cat FILE_LIST-patches |egrep "./packages/" |egrep ".tgz|.txz" |egrep -v ".asc|.md5|debug" |egrep -v "$blacklist" |rev |cut -d / -f1 |rev` `cat FILE_LIST-patches |egrep "./packages/" |egrep ".tgz|.txz" |egrep -v ".asc|.md5|debug" |egrep "$whitelist3" |rev |cut -d / -f1 |rev`)
	patches=(`cat FILE_LIST-patches |egrep "./packages/" |egrep ".tgz|.txz" |egrep -v ".asc|.md5|debug" |egrep -v "$blacklist" |cut -d / -f2,3,4` `cat FILE_LIST-patches |egrep "./packages/" |egrep ".tgz|.txz" |egrep -v ".asc|.md5|debug" |egrep "$whitelist3" |cut -d / -f2,3,4`)
	patches2=(`cat FILE_LIST-patches |egrep "./packages/" |egrep ".tgz|.txz" |egrep -v ".asc|.md5|debug" |egrep -v "$blacklist" |rev |cut -d / -f1 |cut -f2- -d. |rev` `cat FILE_LIST-patches |egrep "./packages/" |egrep ".tgz|.txz" |egrep -v ".asc|.md5|debug" |egrep "$whitelist3" |rev |cut -d / -f1 |cut -f2- -d. |rev`)
	NUM=0
	NUM2=0
	patches4=()
	while [ "$NUM" -lt "${#patches2[*]}" ]; do
		if [ ! -f /var/log/packages/${patches2[$NUM]} ]; then
			patches3[$NUM2]=${patches[$NUM]}
			patches4[$NUM2]=${patches0[$NUM]}
			NUM2=`expr $NUM2 + 1`
		fi
		NUM=`expr $NUM + 1`
	done
	if [ "${#patches3[*]}" -gt "0" ]; then
		echo -e "\E[031;1mDownload dei pacchetti patches...\E[031;0m"
	fi
	POS=$(kdialog --progressbar "File totali: ${#patches3[*]}" --title "SlackUp - Patches Download" 2> /dev/null) &
	NUM=0
	while [ "$NUM" -lt "${#patches3[*]}" ]; do
		if [ ! -f $tmp/${patches3[$NUM]} ]; then
			echo "+=============================================================================="
			echo "| Download del file `expr $NUM + 1` di ${#patches3[*]}: ${patches3[$NUM]}"
			echo "+=============================================================================="
			percentuale=$(expr $NUM \* 100 / ${#patches3[*]})
			qdbus $POS Set "" value $percentuale &> /dev/null
			qdbus $POS setLabelText "Download del file `expr $NUM + 1` di ${#patches3[*]}: ${patches3[$NUM]}" &> /dev/null
			dcop $POS setProgress $percentuale &> /dev/null
			dcop $POS setLabel "Download del file `expr $NUM + 1` di ${#patches3[*]}: ${patches3[$NUM]}" &> /dev/null
			wget $MIRROR/slackware$bit$ARCH-$VERSIONE/patches/${patches3[$NUM]} -O $tmp/patches/${patches4[$NUM]} || rm $tmp/patches/${patches4[$NUM]}
		fi
		NUM=`expr $NUM + 1`
	done
	qdbus $POS close &> /dev/null
	dcop $POS close &> /dev/null
fi
multilib3=()
if [ "$bit" == "64" -a -n "`ls /var/log/packages/*_multilib-x86_64-* 2> /dev/null`" ]; then
	if [ ! -r FILELIST-multilib.TXT ] || [ -r FILELIST-multilib.TXT -a $(expr `date +%s` - `stat -c %Z FILELIST-multilib.TXT`) -gt 43200 ]; then
		wget http://www.slackware.com/~alien/multilib/$VERSIONE/FILELIST.TXT -O FILELIST-multilib.TXT || exit 1
	fi
	multilib=(`cat FILELIST-multilib.TXT |egrep "./gcc-|./*glibc-" |egrep ".tgz|.txz" |egrep -v ".asc|.md5|debug" |cut -d / -f2`)
	multilib2=(`cat FILELIST-multilib.TXT |egrep "./gcc-|./*glibc-" |egrep ".tgz|.txz" |egrep -v ".asc|.md5|debug" |cut -d / -f2 |rev |cut -f2- -d. |rev`)
	NUM=0
	NUM2=0
	while [ "$NUM" -lt "${#multilib2[*]}" ]; do
		if [ ! -f /var/log/packages/${multilib2[$NUM]} ]; then
			multilib3[$NUM2]=${multilib[$NUM]}
			NUM2=`expr $NUM2 + 1`
		fi
		NUM=`expr $NUM + 1`
	done
	if [ "${#multilib3[*]}" -gt "0" ]; then
		echo -e "\E[031;1mDownload dei pacchetti multilib di Alien...\E[031;0m"
	fi
	POS=$(kdialog --progressbar "File totali: ${#multilib3[*]}" --title "SlackUp - Multilib Download" 2> /dev/null) &
	NUM=0
	while [ "$NUM" -lt "${#multilib3[*]}" ]; do
		if [ ! -f $tmp/?/${multilib3[$NUM]} ]; then
			if [ -n "`echo ${multilib3[$NUM]} |grep "solibs" 2> /dev/null`" ]; then
				dir="a"
			elif [ -n "`echo ${multilib3[$NUM]} |grep "glibc" 2> /dev/null`" ]; then
				dir="l"
			elif [ -n "`echo ${multilib3[$NUM]} |grep "gcc" 2> /dev/null`" ]; then
				dir="d"
			fi
			echo "+=============================================================================="
			echo "| Download del file `expr $NUM + 1` di ${#multilib3[*]}: $dir/${multilib3[$NUM]}"
			echo "+=============================================================================="
			percentuale=$(expr $NUM \* 100 / ${#multilib3[*]})
			qdbus $POS Set "" value $percentuale &> /dev/null
			qdbus $POS setLabelText "Download del file `expr $NUM + 1` di ${#multilib3[*]}: $dir/${multilib3[$NUM]}" &> /dev/null
			dcop $POS setProgress $percentuale &> /dev/null
			dcop $POS setLabel "Download del file `expr $NUM + 1` di ${#multilib3[*]}: $dir/${multilib3[$NUM]}" &> /dev/null
			wget http://www.slackware.com/~alien/multilib/$VERSIONE/${multilib3[$NUM]} -O $tmp/$dir/${multilib3[$NUM]} || rm $tmp/$dir/${multilib3[$NUM]}
		fi
		NUM=`expr $NUM + 1`
	done
	qdbus $POS close &> /dev/null
	dcop $POS close &> /dev/null
fi
kdealien3=()
if [ "$KDE_testing" == "ktown" -o "$KDE_testing" == "vtown" ] && [ "$ARCH" != "arm" ]; then
	blacklist2="kde|akonadi|dbus-1|attica-|eigen3-|grantlee-|libdbusmenu-qt-|phonon-4|polkit-0|polkit-kde-agent-1|polkit-qt|scim-|SDL2|qt5|xfce"
	if [ -z "$blacklist" ]; then
		blacklist="$blacklist2"
	else
		blacklist="$blacklist|$blacklist2"
	fi
	whitelist2="kwallet-|calligra-l10n-$lng"
	if [ -z "$whitelist" ]; then
		whitelist="$whitelist2"
	else
		whitelist="$whitelist|$whitelist2"
	fi
	if [ "$bit" == "64" ]; then
		bit2="_64"
	else
		bit2=""
	fi
	if [ ! -r FILE_LIST_KDE ] || [ -r FILE_LIST_KDE -a $(expr `date +%s` - `stat -c %Z FILE_LIST_KDE`) -gt 43200 ]; then
		if [ "$KDE_testing" == "ktown" ]; then
			wget http://alien.slackbook.org/slackware/ktown/$VERSIONE/latest/x86$bit2/FILELIST.TXT -O FILE_LIST_KDE || exit 1
		elif [ "$KDE_testing" == "vtown" ]; then
			wget $MIRROR/slackware$bit-$VERSIONE/testing/FILE_LIST -O FILE_LIST_KDE || exit 1
		fi
	fi
	if [ "$KDE_testing" == "ktown" ]; then
		kdealien=(`cat FILE_LIST_KDE |egrep ".tgz|.txz" |egrep -v ".asc|.md5" |awk '!(/.\/kdei\// && !/l10n-'$lng'-/)' |cut -d / -f2,3,4`)
		kdealien2=(`cat FILE_LIST_KDE |egrep ".tgz|.txz" |egrep -v ".asc|.md5" |awk '!(/.\/kdei\// && !/l10n-'$lng'-/)' |rev |cut -d / -f1 |cut -f2- -d. |rev`)
	elif [ "$KDE_testing" == "vtown" ]; then
		kdealien=(`cat FILE_LIST_KDE |egrep "vtown" |egrep ".tgz|.txz" |egrep -v ".asc|.md5" |awk '!(/.\/kdei\// && !/l10n-'$lng'-/)' |cut -d / -f2,3,4,5`)
		kdealien2=(`cat FILE_LIST_KDE |egrep "vtown" |egrep ".tgz|.txz" |egrep -v ".asc|.md5" |awk '!(/.\/kdei\// && !/l10n-'$lng'-/)' |rev |cut -d / -f1 |cut -f2- -d. |rev`)
	fi
	NUM=0
	NUM2=0
	while [ "$NUM" -lt "${#kdealien2[*]}" ]; do
		if [ ! -f /var/log/packages/${kdealien2[$NUM]} ]; then
			kdealien3[$NUM2]=${kdealien[$NUM]}
			NUM2=`expr $NUM2 + 1`
		fi
		NUM=`expr $NUM + 1`
	done
	if [ "${#kdealien3[*]}" -gt "0" ]; then
		echo -e "\E[031;1mDownload dei pacchetti KDE...\E[031;0m"
	fi
	POS=$(kdialog --progressbar "File totali: ${#kdealien3[*]}" --title "SlackUp - KDE Alien Download" 2> /dev/null) &
	NUM=0
	if [ "$KDE_testing" == "ktown" ]; then
		mkdir -p $tmp/testing/deps/telepathy $tmp/testing/kde/applications $tmp/testing/kde/applications-extra $tmp/testing/kde/frameworks $tmp/testing/kde/kde4 $tmp/testing/kde/kde4-extragear $tmp/testing/kde/kdepim $tmp/testing/kde/plasma $tmp/testing/kde/plasma-extra $tmp/testing/kde/telepathy $tmp/testing/kdei
	elif [ "$KDE_testing" == "vtown" ]; then
		mkdir -p $tmp/testing/packages/vtown/deps $tmp/testing/packages/vtown/kde $tmp/testing/packages/vtown/input-methods $tmp/testing/packages/vtown/xfce
	fi
	while [ "$NUM" -lt "${#kdealien3[*]}" ]; do
		if [ ! -f $tmp/testing/${kdealien3[$NUM]} ]; then
			echo "+=============================================================================="
			echo "| Download del file `expr $NUM + 1` di ${#kdealien3[*]}: ${kdealien3[$NUM]}"
			echo "+=============================================================================="
			percentuale=$(expr $NUM \* 100 / ${#kdealien3[*]})
			qdbus $POS Set "" value $percentuale &> /dev/null
			qdbus $POS setLabelText "Download del file `expr $NUM + 1` di ${#kdealien3[*]}: ${kdealien3[$NUM]}" &> /dev/null
			dcop $POS setProgress $percentuale &> /dev/null
			dcop $POS setLabel "Download del file `expr $NUM + 1` di ${#kdealien3[*]}: ${kdealien3[$NUM]}" &> /dev/null
			if [ "$KDE_testing" == "ktown" ]; then
				wget http://alien.slackbook.org/slackware/ktown/$VERSIONE/latest/x86$bit2/${kdealien3[$NUM]} -O $tmp/testing/${kdealien3[$NUM]} || rm $tmp/testing/${kdealien3[$NUM]}
			elif [ "$KDE_testing" == "vtown" ]; then
				wget $MIRROR/slackware$bit-$VERSIONE/testing/${kdealien3[$NUM]} -O $tmp/testing/${kdealien3[$NUM]} || rm $tmp/testing/${kdealien3[$NUM]}
			fi
		fi
		NUM=`expr $NUM + 1`
	done
	qdbus $POS close &> /dev/null
	dcop $POS close &> /dev/null
fi
if [ -z "$blacklist" ]; then
	blacklist="riempitorechenonpuoesistere"
fi
if [ -z "$whitelist" ]; then
	whitelist="riempitorechenonpuoesistere"
fi
if [ ! -r FILE_LIST ] || [ -r FILE_LIST -a $(expr `date +%s` - `stat -c %Z FILE_LIST`) -gt 43200 ]; then
	wget $MIRROR/slackware$bit$ARCH-$VERSIONE/slackware$bit/FILE_LIST -O FILE_LIST || exit 1
fi
if [ "$SOLOPATCH" == "no" ]; then
if [ ! -r CHANGES_AND_HINTS.TXT ] || [ -r CHANGES_AND_HINTS.TXT -a $(expr `date +%s` - `stat -c %Z CHANGES_AND_HINTS.TXT`) -gt 43200 ]; then
	wget $MIRROR/slackware$bit$ARCH-$VERSIONE/CHANGES_AND_HINTS.TXT -O CHANGES_AND_HINTS.TXT
fi
fi
FILE=(`cat FILE_LIST |egrep ".tgz|.txz" |egrep -v ".asc|.md5" |awk '!(/.\/kdei\// && !/l10n-'$lng'-/)' |egrep -v "$blacklist" |cut -d / -f2,3` `cat FILE_LIST |egrep ".tgz|.txz" |egrep -v ".asc|.md5" |egrep "$whitelist" |cut -d / -f2,3`)
FILE2=(`cat FILE_LIST |egrep ".tgz|.txz" |egrep -v ".asc|.md5" |awk '!(/.\/kdei\// && !/l10n-'$lng'-/)' |egrep -v "$blacklist" |cut -d / -f3 |rev |cut -f2- -d. |rev` `cat FILE_LIST |egrep ".tgz|.txz" |egrep -v ".asc|.md5" |egrep "$whitelist" |cut -d / -f3 |rev |cut -f2- -d. |rev`)
echo -e "\E[031;1mControllo gli aggiornamenti...\E[031;0m"
NUM=0
NUM2=0
while [ "$NUM" -lt "${#FILE2[*]}" ]; do
	if [ ! -f /var/log/packages/${FILE2[$NUM]} ]; then
		if [ ! -f FILELIST-multilib.TXT ] || [[ -f FILELIST-multilib.TXT && ${FILE2[$NUM]} != "gcc-"* && ${FILE2[$NUM]} != *"glibc-"* ]] || [[ ${FILE2[$NUM]} == "glibc-zoneinfo-"* ]]; then
			FILE3[$NUM2]=${FILE[$NUM]}
			NUM2=`expr $NUM2 + 1`
		fi
	fi
	NUM=`expr $NUM + 1`
done
if [ "${#FILE3[*]}" -eq "0" -a "${#multilib3[*]}" -eq "0" -a "${#kdealien3[*]}" -eq "0" -a "${#patches3[*]}" -eq "0" ] || [ "${#patches3[*]}" -eq "0" -a "$SOLOPATCH" == "si" -a "${#multilib3[*]}" -eq "0" -a "${#kdealien3[*]}" -eq "0" ]; then
	rm -rf $tmp
	echo -e "\E[031;1mIl sistema è già aggiornato.\E[031;0m"
	exit 0
fi
if [ "$SOLOPATCH" == "no" ]; then
if [ "${#FILE3[*]}" -eq "0" ]; then
	echo -e "\E[031;1mDownload dei pacchetti ufficiali...\E[031;0m"
fi
POS=$(kdialog --progressbar "File totali: ${#FILE3[*]}" --title "SlackUp - PKG Ufficiali Download" 2> /dev/null) &
NUM=0
while [ "$NUM" -lt "${#FILE3[*]}" ]; do
	if [ ! -f $tmp/${FILE3[$NUM]} ]; then
		percentuale=$(expr $NUM \* 100 / ${#FILE3[*]})
		qdbus $POS Set "" value $percentuale &> /dev/null
		dcop $POS setProgress $percentuale &> /dev/null
		if [ -r $DVD/${FILE3[$NUM]} ]; then
			echo "+=============================================================================="
			echo "| Copia del file `expr $NUM + 1` di ${#FILE3[*]}"
			echo "+=============================================================================="
			qdbus $POS setLabelText "Copia del file `expr $NUM + 1` di ${#FILE3[*]}: ${FILE3[$NUM]}" &> /dev/null
			dcop $POS setLabel "Copia del file `expr $NUM + 1` di ${#FILE3[*]}: ${FILE3[$NUM]}" &> /dev/null
			cp $DVD/${FILE3[$NUM]} $tmp/${FILE3[$NUM]} || rm $tmp/${FILE3[$NUM]}
		else
			echo "+=============================================================================="
			echo "| Download del file `expr $NUM + 1` di ${#FILE3[*]}: ${FILE3[$NUM]}"
			echo "+=============================================================================="
			qdbus $POS setLabelText "Download del file `expr $NUM + 1` di ${#FILE3[*]}: ${FILE3[$NUM]}" &> /dev/null
			dcop $POS setLabel "Download del file `expr $NUM + 1` di ${#FILE3[*]}: ${FILE3[$NUM]}" &> /dev/null
			wget $MIRROR/slackware$bit$ARCH-$VERSIONE/slackware$bit/${FILE3[$NUM]} -O $tmp/${FILE3[$NUM]} || rm $tmp/${FILE3[$NUM]}
		fi
	fi
	NUM=`expr $NUM + 1`
done
qdbus $POS close &> /dev/null
dcop $POS close &> /dev/null
fi
echo -e "\E[031;1mDownload completato. Aggiornamento in corso...\E[031;0m"
kdialog --passivepopup "Download completato. Aggiornamento in corso..." --title SlackUp 2> /dev/null &
runlevel=$(runlevel |cut -d" " -f2)
if [ "$runlevel" -gt "1" ] && [ -n "`ls $tmp/a/*glibc-solibs-*.t?z 2> /dev/null`" ]; then
	echo -e "\E[031;1mRieseguire in runlevel 1.\E[031;0m"
	kdialog --msgbox "Rieseguire in runlevel 1." --title SlackUp 2> /dev/null
	exit 1
fi
if [ "$runlevel" -gt "3" ] && [ -n "`ls $tmp/x/xorg-server-*.t?z 2> /dev/null`" -o -n "`ls $tmp/x/mesa-*.t?z 2> /dev/null`" ]; then
	echo -e "\E[031;1mRieseguire in runlevel 3.\E[031;0m"
	kdialog --msgbox "Rieseguire in runlevel 3." --title SlackUp 2> /dev/null
	exit 1
fi
if [ -n "`ls $tmp/a/*glibc-solibs-*.t?z 2> /dev/null`" ]; then
	upgradepkg $tmp/a/*glibc-solibs-*.t?z
fi
if [ -n "`ls $tmp/a/pkgtools-*.t?z 2> /dev/null`" ]; then
	upgradepkg $tmp/a/pkgtools-*.t?z
fi
if [ -n "`ls $tmp/a/tar-*.t?z 2> /dev/null`" ]; then
	upgradepkg $tmp/a/tar-*.t?z
fi
if [ -n "`ls $tmp/a/xz-*.t?z 2> /dev/null`" ]; then
	upgradepkg $tmp/a/xz-*.t?z
fi
if [ -n "`ls $tmp/a/findutils-*.t?z 2> /dev/null`" ]; then
	upgradepkg $tmp/a/findutils-*.t?z
fi
if [ "${#FILE3[*]}" -gt "0" -o "${#multilib3[*]}" -gt "0" ] && [ "$SOLOPATCH" == "no" ]; then
	upgradepkg --install-new --terse $tmp/*/*.t?z
fi
if [ "${#patches3[*]}" -gt "0" ]; then
	upgradepkg --terse $tmp/patches/*.t?z
fi
if [ "$KDE_testing" == "ktown" -o "$KDE_testing" == "vtown" ] && [ "${#kdealien3[*]}" -gt "0" ]; then
	upgradepkg --install-new --terse $tmp/testing/*/*.t?z $tmp/testing/*/*/*.t?z $tmp/testing/*/*/*/*.t?z
fi
if [ "$SOLOPATCH" == "no" ]; then
rimossi=(`awk '/*** OTHER NOTABLE CHANGES AND HINTS ***/{found=0} {if(found) print} /*** PACKAGE REMOVALS SINCE/{found=1}' CHANGES_AND_HINTS.TXT |grep "^[a-z]/" |cut -d/ -f2 |cut -d" " -f1 |tr -d "\r" |grep -v "^$"`)
NUM=0
while [ "$NUM" -lt "${#rimossi[*]}" ]; do
	if [ -n "`ls /var/log/packages/${rimossi[$NUM]}-[0-9]*-[i-x]*-[1-9]* 2> /dev/null`" -a -z "`echo ${rimossi[$NUM]}- |egrep "$whitelist"`" ]; then
		removepkg --terse ${rimossi[$NUM]}
	fi
	NUM=`expr $NUM + 1`
done
fi
cd /etc/rc.d
find . -name "*.new" | while read configfile ; do
	#if [ ! "$configfile" = "./rc.inet1.conf.new" -a ! "$configfile" = "./rc.local.new" -a ! "$configfile" = "./rc.M.new" ]; then
	if [ ! "$configfile" = "./rc.inet1.conf.new" -a ! "$configfile" = "./rc.local.new" ]; then
		cp -a $(echo $configfile | rev | cut -f 2- -d . | rev) \
		$(echo $configfile | rev | cut -f 2- -d . | rev).bak 2> /dev/null
		mv $configfile $(echo $configfile | rev | cut -f 2- -d . | rev)
	fi
done
mv /usr/share/vim/vimrc.new /usr/share/vim/vimrc 2> /dev/null
if [ -n "`ls $tmp/a/kernel-huge-*.t?z 2> /dev/null`" -a -z "`ls /boot/vmlinuz-* |egrep -v "huge|generic" 2> /dev/null`" ]; then
	DIS=$(cat /etc/mtab |grep " / " |cut -d" " -f1 |sed s/.$//)
	MBR=$(dd if=$DIS bs=446 count=1 2> /dev/null |strings)
	CURVER=$(uname -r |cut -d- -f1)
	VER=$(ls $tmp/a/kernel-huge-?.*.t?z |cut -d- -f3)
	if [ "`zcat /proc/config.gz |grep "CONFIG_EXT4_FS=" |cut -d= -f2`" == "m" ]; then
		if [ "`zcat /proc/config.gz |grep "CONFIG_LOCALVERSION=" |cut -d= -f2`" == "\"-smp\"" -a -z "$bit" ]; then
			/usr/share/mkinitrd/mkinitrd_command_generator.sh -k $VER-smp
		else
			/usr/share/mkinitrd/mkinitrd_command_generator.sh -k $VER
		fi
	fi
	controllo="0"
	if [ -n "`echo $MBR |grep -i grub`" ]; then
		sed -i "s|$CURVER|$VER|g" /boot/grub/grub.cfg
	elif [ -n "`echo $MBR |grep -i elilo`" ]; then
		sed -i "s|$CURVER|$VER|g" /etc/elilo.conf
		/sbin/elilo --efiboot
	elif [ -n "`echo $MBR |grep -i lilo`" ]; then
		sed -i "s|$CURVER|$VER|g" /etc/lilo.conf
		/sbin/lilo
	else
		controllo="1"
		echo -e "\E[031;1mErrore: Bootloader non aggiornato.\E[031;0m"
		kdialog --error "Errore: Bootloader non aggiornato." --title SlackUp 2> /dev/null
	fi
	if [ "$controllo" -eq "0" ]; then
		echo -e "\E[031;1mBootloader aggiornato.\E[031;0m"
		kdialog --passivepopup "Bootloader aggiornato." --title SlackUp 2> /dev/null
	fi
fi
rm -rf $tmp $LOCKFILE.$N
echo -e "\E[031;1mAggiornamento completato.\E[031;0m"
kdialog --passivepopup "Aggiornamento completato." --title SlackUp 2> /dev/null &
Scarica [.sh]    ...scaricato 48 volte, dimensione: 20 KB

È sufficiente eseguirlo da root in questo modo:

# ./slackup
Scritto da: Andrea Peluso (sya54M), . Ultimo aggiornamento: .

Commenti

101 commenti

เครดิตฟรี ufabet ล่าสุด

Kelli

http://www.stes.tyc.edu.tw/xoops/modules/profile/userinfo.php?uid=398456

รถเช่าหาดใหญ่

Hassan

http://bbs.1001860.com/home.php?mod=space&uid=2122156

เครดิตฟรี 188

Ismael

https://dribbble.com/vinylseason7

คาสิโนออนไลน์ 555

Gita

https://maps.google.com.pr/url?q=https://nhadat24.org/author/beautyvessel5

xe888 เครดิต ฟรี

Tabatha

http://b3.zcubes.com/v.aspx?mid=12682215

dk7 เครดิต ฟรี 68

Dawna

https://m.jingdexian.com/home.php?mod=space&uid=1804830

eazyslot เครดิตฟรี

Dani

http://bbs.zsby0943.com/home.php?mod=space&uid=1706417

88 slot เครดิต ฟรี 40

Malissa

https://keyhand51.bloggersdelight.dk/2023/11/28/the-best-online-casino-games-to-play-in-thailand/

รถเช่าอุบล chh ubon carrent

Chante

https://wikimapia.org/external_link?url=https://www.aekcarrentalubon.com/

foplay เครดิต ฟรี 128

Neville

http://qooh.me/dressbomber4

ค่า สิ โน ออนไลน์ 168

Brittny

http://hawkee.com/profile/5221247/

เครดิตฟรี kingthai168

Zelda

https://www.metooo.io/u/652ea2b0997f273d46cd849e

เครดิตฟรี ฝาก 1 บาท ล่าสุด

Roscoe

http://sc.sie.gov.hk/TuniS/canvas.instructure.com/eportfolios/2550352/Home/_5_

เครดิตฟรี ค่าย รวม 60 ไม่เคยฝากรับ 50

Elisabeth

http://www.fjclwz.us/upload/home.php?mod=space&uid=1998434

ขายไวน์

Johnson

https://oakwine.co.th/

fun88เครดิตฟรี

Abraham

https://fun-888.com/

g2g56 เครดิตฟรี

Shantell

https://images.google.bi/url?q=https://www.pdc.edu/?URL=https://freecreditfree.com/casino-online/

youlike1234 เครดิตฟรี

Krystyna

http://hm5.cn/space-uid-1028897.html

asia999 เครดิต ฟรี 100

Major

https://talktoislam.com/user/crayonduck3

บริการรูดบัตรเครดิต

Faustino

https://www.cashquickonhand.com

เว็บสล็อตแตกง่าย 2022 เครดิตฟรี

Isiah

https://doodleordie.com/profile/outputangora4

gb 69 คาสิโนออนไลน์

Jude

https://mail.your001.com/space-uid-329569.html

เครดิต ฟรี 50 otp

Toni

https://6.ly/aD64i

happy555th เครดิตฟรี

Arron

https://images.google.com.ly/url?q=https://anotepad.com/notes/sg6949nk

dr.c4 คาสิโนออนไลน์

Ralph

https://images.google.com.na/url?q=http://sqworl.com/ncgsmk

yingpla999 เครดิตฟรี

Joyce

http://daojianchina.com/home.php?mod=space&uid=2768802

สล็อตออนไลน์ สล็อตpg คาสิโนออนไลน์ เว็บสล็อต mgm99xx

Lupe

https://www.google.dm/url?q=https://www.indiegogo.com/individuals/35582626/

vscr888 เครดิตฟรี

Cameron

https://www.xuetu123.com/home.php?mod=space&uid=7684063

is online slot gambling legal

Emanuel

https://yxlt1.com/home.php?mod=space&uid=458064

xe88th เครดิต ฟรี

Manie

https://bbs.pku.edu.cn/v2/jump-to.php?url=https://freecreditfree.com/

ib888 เครดิตฟรี 40 ล่าสุด

Pearline

http://emseyi.com/user/cinemalunch35

ขายไวน์

Dixie

https://oakwine.co.th/

fun88 ทางเข้า

Lida

https://4.gp/aD4eW

jedi 198 คาสิโนออนไลน์

Lourdes

https://valetinowiki.racing/wiki/Unveiling_the_Secrets_of_PG_Slots_How_Do_They_Work

winner555 เครดิตฟรี ยืนยัน ตัว ตน

Kate

https://community.windy.com/user/dencup24

winnerbet - online sports betting virtual & casino games

Audra

http://www.visionzone.com.cn/home.php?mod=space&uid=2782428

pigspin เครดิตฟรี 100 ล่าสุด ฟรี

Margot

https://www.meetingwithpia.org/members/cokeincome0/activity/1423622/

online casino australia no deposit bonus

Penni

https://www.ky58.cc/dz/home.php?mod=space&uid=1240315

hydra888 วิทยากรเว็บพนัน คาสิโนออนไลน์ บาคาร่า ฝากถอน auto 10 วิ

Karma

https://www.google.pt/url?q=https://atavi.com/share/wn2eqtz1ph4qx

fafa365 คาสิโนออนไลน์ ออโต้ เว็บตรง 2023

Novella

https://www.saludcapital.gov.co/sitios/VigilanciaSaludPublica/Lists/Contactenos/DispForm.aspx?ID=181551

imiwin88 เว็บไซต์ คาสิโนออนไลน์ บาคาร่า สล็อตออนไลน์

Emery

https://urlscan.io/result/3d0a2d72-96bc-45fc-a919-e3dfc07dad90/

เครดิตฟรี meslot

Agueda

http://www.auto-software.org/member.php?action=profile&uid=430071

1688sagame คาสิโนออนไลน์ เกมส์บาคาร่าออนไลน์ ฝาก-ถอน 30 วินาที

Marlon

https://www.webwiki.it/movecasino.com/slot/

เครดิตฟรี 45

Samual

https://cj.xjyzgg.com/home.php?mod=space&uid=1788545

noar 123 เครดิต ฟรี

Dane

https://shenasname.ir/ask/user/memorypilot96

รถเช่าอุบล chh ubon carrent

Lynwood

https://8.ly/aD4xN

discuss

Olen

https://bookmarkfeeds.stream/story.php?title=the-most-popular-online-casino-games-in-the-philippines-find-your-favorite

เครดิตฟรี 50 ไม่ต้องทํากิจกรรม

Tuyet

https://guizu5201314.com/home.php?mod=space&uid=2592411

เครดิตฟรี ip ไม่ ซ้ํา

Jan

https://zenwriting.net/ghanabeauty27/the-ultimate-guide-to-free-credit-casinos-press-to-receive-your-fortune

milf on onlyfans

Ruth

http://qooh.me

เครดิตฟรี faw99

Shawn

http://www.80tt1.com/home.php?mod=space&uid=1012798

r666_ เครดิต ฟรี 58

Justin

https://ceshi.xyhero.com/home.php?mod=space&uid=1387990

เครดิตฟรี tw

Lynwood

https://barberbirch3.bloggersdelight.dk/2024/05/13/claim-your-free-casino-credit-today-and-start-winning/

online casino tennessee

Bettina

https://images.google.cg/url?q=http://kuri6005.sakura.ne.jp/aspnet/wiki/index.php?hoganmcmillan549862

ค่ายเกมสล็อต เครดิตฟรี

Kate

https://abuk.net/home.php?mod=space&uid=803071

heng888 เครดิต ฟรี

Calvin

https://jszst.com.cn/home.php?mod=space&uid=3424005

รับรูดบัตรเครดิต

Wanda

https://www.cashquickonhand.com

888 เครดิตฟรี 100

Leandro

http://idea.informer.com/users/taxdew9/?what=personal

ขายไวน์

Lavina

https://oakwine.co.th/

ipro998 เครดิตฟรี

Joanna

https://709h.com/space-uid-951728.html

discuss

Edgardo

https://bookmarking.win/story.php?title=exploring-hatyai-in-style-renting-a-car-made-easy-6

เครดิตฟรี YES8

Katrice

https://freecreditfree.com/yes8thai/

discuss

Selena

https://bookmarking.win/story.php?title=get-more-bang-for-your-buck-with-these-casino-bonus-codes-in-the-philippines

online casino australia

Edgar

https://peatix.com/user/21035843

fat168 เครดิตฟรี

Quentin

https://www.hulkshare.com/sailorindia7/

เครดิต ฟรี sanfrr88

Phillip

http://tkinterdesigner.com/bbs/home.php?mod=space&uid=96874

discuss

Millard

https://coolpot.stream/story.php?title=the-benefits-of-playing-at-iphone-casinos-within-the-philippines-convenience-at-your-fingertips-4

ib888 เครดิตฟรี 40 ล่าสุด

Jacquelyn

https://etextpad.com/81sqrz1ncl

online casino 247 philippines

Mikayla

https://maps.google.ae/url?q=https://chart-studio.plotly.com/~tyvekcave39

online casino michigan real money

Moses

https://wq.xigu.ren/home.php?mod=space&uid=468355

เครดิตฟรี

Lona

https://szperamy.pl/czlonkowie/milepasta5/activity/52443/

333be เครดิตฟรี

Stacy

https://utahsyardsale.com/author/fangtulip5/

discuss

Rochelle

https://ondashboard.win/story.php?title=%E0%B8%84%E0%B8%B2%E0%B8%AA%E0%B8%B4%E0%B9%82%E0%B8%99%E0%B8%AD%E0%B8%AD%E0%B8%99%E0%B9%84%E0%B8%A5%E0%B8%99%E0%B9%8C%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B8%94%E0%B8%B5%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B8%AA%E0%B8%B8%E0%B8%94%E0%B9%80%E0%B8%9E%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B9%80%E0%B8%A5%E0%B9%88%E0%B8%99%E0%B8%9A%E0%B8%B2%E0%B8%84%E0%B8%B2%E0%B8%A3%E0%B9%88%E0%B8%B2

รับรูดบัตรเครดิต

Martina

https://www.cashquickonhand.com

space 222 เครดิตฟรี

Doris

https://www.demilked.com/author/braintaurus40/

เช่ารถสงขลา

Carroll

https://www.xjtdsj.com/home.php?mod=space&uid=153300

discuss

Ramonita

https://coolpot.stream/story.php?title=plan-your-perfect-casino-getaway-top-10-casinos-in-thailand-2

online casino wisconsin

Francisco

https://independent.academia.edu/RandallAshby2

เครดิตฟรี ufabet ล่าสุด

Kandice

https://postheaven.net/meatangora1/how-to-get-free-casino-credit-and-maximize-your-winnings-zjr1

online casino rules

Jeana

https://www.instructables.com/member/sistercrook5/

harrah's online casino

Shawnee

https://shenasname.ir/ask/user/laughplanet3

online casino real money sign up bonus

Howard

http://sc.sie.gov.hk/TuniS/tuneprice55.werite.net/how-to-choose-the-best-online-baccarat-casino-for-you

delaware online casino

Willy

https://londonchinese.com/home.php?mod=space&uid=464739

เครดิตฟรี gif

Roger

https://www.play56.net/home.php?mod=space&uid=2832530

Online Casino Betting

Quincy

https://500px.com/p/fieldshvnhelms

fun88 ทางเข้า

Aimee

https://fun-888.com/

fun88 เข้าระบบ

Huey

https://www.question2answer.org/qa/index.php?qa=user&qa_1=birchloan73

เครดิตฟรี ฝาก 1 บาท ได้ 50

Dante

https://writeablog.net/violaformat2/ewbaichtkhaasion-nailnthiimiich-ngthaangfaak-th-nthiingaaythiisud

online casino arizona

Latesha

http://porchlink.com/srn/members/lowink8/activity/232112/

hollywood casino sports betting online

Hattie

https://fliphtml5.com/homepage/dpary

online casino premier bet malawi

Joni

https://cookeji.com/home.php?mod=space&uid=291149

บริการรูดบัตรเครดิต

Jaqueline

https://www.cashquickonhand.com

ปั่น กรง ล้อ เครดิตฟรี 24 ชม

Modesta

https://developers.oxwall.com/user/fridaygrape6

ขายไวน์

Adell

https://oakwine.co.th/

fun88เครดิตฟรี

Deanne

https://fun-888.com/

online casino color game

Theda

https://m.jingdexian.com/home.php?mod=space&uid=2056098

Estela

Felipa

https://urlscan.io/result/4ff299e8-2c01-421b-9c1d-8ccc2284e4f1/

Milton

Adrienne

https://www.google.co.bw/url?q=https://globalarticlewarehouse.com/

TopPornSites ranks the world's best porn sites of 2024.

Kristy

https://top-porn-sites.com

Terrell-burton.blogbright.net

Clyde

https://terrell-burton.blogbright.net/undeniable-proof-that-you-need-top-10-pornstars-1706620938/

michaelsen-bailey-2.Technetbloggers.de

Sonja

https://michaelsen-bailey-2.technetbloggers.de/20-resources-to-make-you-better-at-top-10-pornstars/

I campi contrassegnati con * sono obbligatori.

Condividi sui tuoi social preferiti!

Telegram Facebook Linkedin Twitter Pinterest
.