]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - config/rootfiles/core/168/update.sh
Core Update 168: Ship fcrontab and rebuild it from scratch
[ipfire-2.x.git] / config / rootfiles / core / 168 / update.sh
index e11e08b7f73936507128688559235444b132b339..6bb081ff28d2ce54384e6509752a80a470a1a0ba 100644 (file)
@@ -120,6 +120,16 @@ case "$(uname -m)" in
                 ;;
 esac
 
+# Add rd.auto to kernel command line
+if ! grep -q rd.auto /etc/default/grub; then
+       sed -e "s/panic=10/& rd.auto/" -i /etc/default/grub
+fi
+
+# Repair any broken MDRAID arrays
+/usr/local/bin/repair-mdraid
+
+# Rebuild fcrontab from scratch
+/usr/bin/fcrontab -z
 
 # Start services
 /etc/init.d/fcron restart