]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - config/rootfiles/core/80/update.sh
wpa_supplicant: update to 2.2.
[people/teissler/ipfire-2.x.git] / config / rootfiles / core / 80 / update.sh
index f878cfe164e4327f4bf3155d0f4c53b492e04629..830481d0eaa14275eeba26325872c2aa01d5d0cd 100644 (file)
@@ -31,15 +31,49 @@ do
        rm -f /var/cache/pakfire/core-upgrade-*-$i.ipfire
 done
 
+# Remove old strongswan files
+rm -f \
+       /etc/strongswan.d/charon/unity.conf \
+       /usr/lib/ipsec/plugins/libstrongswan-unity.so \
+       /usr/share/strongswan/templates/config/plugins/unity.conf
+
 # Stop services
 
 # Extract files
 extract_files
 
 # Start services
+/etc/init.d/dnsmasq restart
 
 # Update Language cache
-#perl -e "require '/var/ipfire/lang.pl'; &Lang::BuildCacheLang"
+perl -e "require '/var/ipfire/lang.pl'; &Lang::BuildCacheLang"
+
+# Uninstall the libgpg-error package.
+rm -f \
+       /opt/pakfire/db/installed/meta-libgpg-error \
+       /opt/pakfire/db/rootfiles/libgpg-error
+
+# Regenerate squid configuration file
+/srv/web/ipfire/cgi-bin/proxy.cgi
+
+# Generate ddns configuration file
+/srv/web/ipfire/cgi-bin/ddns.cgi
+
+touch /var/ipfire/ddns/ddns.conf
+chown nobody.nobody /var/ipfire/ddns/ddns.conf
+
+# Update crontab
+sed -i /var/spool/cron/root.orig -e "/setddns.pl/d"
+
+grep -q /usr/bin/ddns /var/spool/cron/root.orig || cat <<EOF >> /var/spool/cron/root.orig
+
+# Update dynamic DNS records every five minutes.
+# Force an update once a month
+*/5 * * * *    [ -f "/var/ipfire/red/active" ] && /usr/bin/ddns update-all
+3 2 1 * *      [ -f "/var/ipfire/red/active" ] && /usr/bin/ddns update-all --force
+EOF
+
+fcrontab -z &>/dev/null
 
 sync