uif (1.0.5-4.3) direct (non packaging) changes

Summary

 uif |   12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

    
download this patch

Patch contents

--- uif-1.0.5.orig/uif
+++ uif-1.0.5/uif
@@ -1,6 +1,12 @@
 #! /bin/bash
-#
-# uif           Start the firewall defined in /etc/uif/uif.conf.
+### BEGIN INIT INFO
+# Provides:          uif
+# Required-Start:    $network $syslog $remote_fs
+# Required-Stop:     $network $syslog $remote_fs
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: Start the firewall defined in /etc/uif/uif.conf.
+### END INIT INFO
 #
 # Version:      @(#)/etc/init.d/uif  1.0.0  21-Feb-2002  pollmeier@gonicus.de
 #
@@ -114,7 +120,7 @@
 	# Show last 10 policy violations
 	if [ -n "$LOGPREFIX" ]; then
 		echo -e "\n\nLast 10 policy violations:"
-		dmesg | grep "`hostname`.* $LOGPREFIX .*:" 2> /dev/null | tail -10
+		dmesg | grep "`hostname`.* $LOGPREFIX .*:" 2> /dev/null | tail -n 10
 	fi
 
 	echo -e "\n\n"