[Pkg-dkms-commits] r36 - dkms/trunk/debian
hanska-guest at alioth.debian.org
hanska-guest at alioth.debian.org
Thu Dec 11 16:41:36 UTC 2008
Author: hanska-guest
Date: 2008-12-11 16:41:35 +0000 (Thu, 11 Dec 2008)
New Revision: 36
Modified:
dkms/trunk/debian/changelog
dkms/trunk/debian/prerm
Log:
debian/prerm: use sed instead of tricky grep hack
Modified: dkms/trunk/debian/changelog
===================================================================
--- dkms/trunk/debian/changelog 2008-12-11 16:15:50 UTC (rev 35)
+++ dkms/trunk/debian/changelog 2008-12-11 16:41:35 UTC (rev 36)
@@ -22,6 +22,7 @@
* debian/postinst added
* debian/HOWTO.Debian from Ubuntu package added
* debian/modprobe added
+ * debian/prerm: use sed instead of tricky grep hack
[ Giuseppe Iuculano ]
* Added myself as Uploader
@@ -34,7 +35,7 @@
removed if it is empty after a removal. This allows the modules directory
to be removed as it becomes empty.
- -- Giuseppe Iuculano <giuseppe at iuculano.it> Mon, 08 Dec 2008 11:25:17 +0100
+ -- David Paleino <d.paleino at gmail.com> Thu, 11 Dec 2008 17:40:40 +0100
dkms (2.0.19-0ubuntu2) hardy; urgency=low
Modified: dkms/trunk/debian/prerm
===================================================================
--- dkms/trunk/debian/prerm 2008-12-11 16:15:50 UTC (rev 35)
+++ dkms/trunk/debian/prerm 2008-12-11 16:41:35 UTC (rev 36)
@@ -3,17 +3,15 @@
set -e
case "$1" in
- remove|upgrade|deconfigure)
+ remove|deconfigure)
kconf="/etc/kernel-img.conf"
hookline="header_postinst_hook = /etc/kernel/postinst.d/dkms"
if [ -e $kconf ]; then
- if grep -q "$hookline" "$kconf" ; then
- temp=`mktemp /tmp/dkms.XXXXXX`
- grep -v "$hookline" "$kconf" > "$temp"
- mv "$temp" "$kconf"
- fi
+ if grep -q "$hookline" "$kconf" ; then
+ sed -i "\@$hookline at d" "$kconf"
+ fi
fi
;;
More information about the Pkg-dkms-commits
mailing list