add_to_backup var/ipfire/{dmzholes,portfw,outgoing,xtaccess}
add_to_backup etc/inittab
add_to_backup etc/fstab
+add_to_backup usr/share/usb_modeswitch
# Backup the files
tar cJvf /var/ipfire/backup/core-upgrade$core_$KVER.tar.xz \
rm -rf /boot/uInit-ipfire-*
rm -rf /lib/modules
+# Remove old usb_modeswitch_data
+rm -rf /usr/share/usb_modeswitch
+
#
# Remove old udev rules.
#
# Remove the old default theme
rm -rf /srv/web/ipfire/html/themes/ipfire
+# rename /etc/modprobe.d files
+for i in $(find /etc/modprobe.d/* | grep -v ".conf")
+ mv $i $i.conf
+done
+
#
#Extract files
tar xavf /opt/pakfire/tmp/files* --no-overwrite-dir -p --numeric-owner -C /