Modificirano da ne briše konfiguraciju
[kernel-cn.git] / debian / postrm
index 13374b3..dac7650 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# postrm script for kernel-2.6-cn
+# postrm script for kernel-cn
 #
 # see: dh_installdeb(1)
 
@@ -35,29 +35,18 @@ esac
 
 ################################################################################
 
-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.