vdr/nvram-wakeup/debian postinst templates

Thomas Schmidt pkg-vdr-dvb-changes@lists.alioth.debian.org
Wed, 07 Jul 2004 13:36:25 +0000


Update of /cvsroot/pkg-vdr-dvb/vdr/nvram-wakeup/debian
In directory haydn:/tmp/cvs-serv25418/vdr/nvram-wakeup/debian

Modified Files:
	postinst templates 
Log Message:
* new debconf-note for missing nvram-support
* updated debconf-templates

Index: postinst
===================================================================
RCS file: /cvsroot/pkg-vdr-dvb/vdr/nvram-wakeup/debian/postinst,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- postinst	7 Jul 2004 13:13:47 -0000	1.3
+++ postinst	7 Jul 2004 13:36:23 -0000	1.4
@@ -48,13 +48,13 @@
 				then
 		    		if ! cat /etc/modules | grep -q nvram
 		    		then
-    					test "$(tail -n1 /etc/modules)" && printf "\n" >> /etc/modules
     					echo "nvram" >> /etc/modules
 		    		fi
+				else
+					db_get nvram-wakeup/no_module_note
 				fi
 	 	 	fi
 		fi
-
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)
@@ -72,5 +72,4 @@
 #DEBHELPER#
 
 exit 0
-
 

Index: templates
===================================================================
RCS file: /cvsroot/pkg-vdr-dvb/vdr/nvram-wakeup/debian/templates,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- templates	7 Jul 2004 13:13:47 -0000	1.3
+++ templates	7 Jul 2004 13:36:23 -0000	1.4
@@ -19,3 +19,9 @@
  - add nvram to /etc/modules
  .
  - alternatively you can use modconf to reach the same result
+
+Template: nvram-wakeup/no_module_note
+Type: note
+_Description: No nvram-module found
+ The nvram-module could not be loaded, either you have compiled in the 
+ nvram-support in your kernel, or your kernel is missing the nvram-support.