X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=blobdiff_plain;f=config%2Frootfiles%2Fcore%2F90%2Fupdate.sh;h=52a8a8c757a944ede78d9525ad603d98b7362928;hp=68798cb84d63369a2aae5880f20cd0ee79b30f4e;hb=51ff5115a0d7e8b5ea99d8a0b1aaac1823487304;hpb=242694089f1a666b5cfcabbeb17440a2d8e54409 diff --git a/config/rootfiles/core/90/update.sh b/config/rootfiles/core/90/update.sh index 68798cb84d..52a8a8c757 100644 --- a/config/rootfiles/core/90/update.sh +++ b/config/rootfiles/core/90/update.sh @@ -132,10 +132,17 @@ esac /etc/init.d/ipsec stop /etc/init.d/apache stop +# Drop old flag icons, before extracting the new ones. +rm /srv/web/ipfire/html/images/flags/* + # #Extract files tar xavf /opt/pakfire/tmp/files* --no-overwrite-dir -p --numeric-owner -C / +# +# restart init because glibc was updated. +telinit u + # Remove old openssl libraries rm -vf /usr/lib/libcrypto.so.0.9.8 /usr/lib/libssl.so.0.9.8 @@ -201,6 +208,9 @@ sudo -u nobody /srv/web/ipfire/cgi-bin/vpnmain.cgi # Update Language cache perl -e "require '/var/ipfire/lang.pl'; &Lang::BuildCacheLang" +# Remove old udev configuration +rm -vf /etc/udev/rules.d/30-persistent-network.rules + # # Start services # @@ -228,6 +238,17 @@ case "$(uname -m)" in esac esac +# Upadate Kernel version uEnv.txt +if [ -e /boot/uEnv.txt ]; then + sed -i -e "s/KVER=.*/KVER=${KVER}/g" /boot/uEnv.txt +fi + +# call user update script (needed for some arm boards) +if [ -e /boot/pakfire-kernel-update ]; then + /boot/pakfire-kernel-update ${KVER} +fi + + # Force (re)install pae kernel if pae is supported rm -rf /opt/pakfire/db/*/meta-linux-pae if [ ! "$(grep "^flags.* pae " /proc/cpuinfo)" == "" ]; then