#!/bin/sh
-# postrm script for kernel-2.6-cn
+# postrm script for kernel-cn
#
# see: dh_installdeb(1)
################################################################################
-echo -n "CN: Cleaning up..."
+### zakomentirano jer više ne želimo brisati postavke nakon brisanja paketa (2023-07-05)
+###echo -n "CN: Cleaning up..."
-# remove us from limits.conf
-cp-update -r kernel-2.6-cn /etc/security/limits.conf
-echo -n " limits"
+#### remove us from limits.conf
+###cp-update -r kernel-cn /etc/security/limits.conf
+###echo -n " limits"
-# remove us from modules
-cp-update -r kernel-2.6-cn /etc/modules
-echo -n " modules"
+#### remove us from modules
+###cp-update -r kernel-cn /etc/modules
+###echo -n " modules"
-echo "."
-
-################################################################################
-
-DIVERT_TO="grub grub-probe"
-
-echo -n "CN: Undiverting binaries:"
-for i in $DIVERT_TO; do
- dpkg-divert --remove --rename --package 'kernel-2.6-cn' \
- --divert /usr/sbin/$i.real /usr/sbin/$i >/dev/null
- echo -n " $i"
-done
-echo "."
+###echo "."
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.