. /opt/pakfire/lib/functions.sh
/usr/local/bin/backupctrl exclude >/dev/null 2>&1
-core=138
+core=137
exit_with_error() {
# Set last succesfull installed core.
rm -rf /boot/uInit-*-ipfire-*
rm -rf /boot/dtb-*-ipfire-*
rm -rf /lib/modules
-rm -f /etc/sysconfig/lm_sensors
# Remove files
# Extract files
extract_files
-# update dhcpcd.conf
-
# update linker config
ldconfig
/usr/local/bin/update-lang-cache
# Start services
+/usr/local/bin/ipsecctrl S
+/etc/init.d/suricata restart
+/etc/init.d/unbound restart
+/etc/init.d/collectd restart
+
+# remove lm_sensor config after collectd was started
+# to reserch sensors at next boot with updated kernel
+rm -f /etc/sysconfig/lm_sensors
+
+# generate new qos script
+/usr/local/bin/qosctrl generate
# Search sensors again after reboot into the new kernel
rm -f /etc/sysconfig/lm_sensors