[Pkg-sysvinit-commits] r687 - sysvinit/trunk/debian/initscripts

Thomas Hood jdthood-guest at costa.debian.org
Mon Jan 23 11:18:52 UTC 2006


Author: jdthood-guest
Date: 2006-01-23 11:18:52 +0000 (Mon, 23 Jan 2006)
New Revision: 687

Modified:
   sysvinit/trunk/debian/initscripts/postinst
   sysvinit/trunk/debian/initscripts/postrm
Log:
Create initial /var/log/boot.  Remove more stuff on purge

Modified: sysvinit/trunk/debian/initscripts/postinst
===================================================================
--- sysvinit/trunk/debian/initscripts/postinst	2006-01-23 11:07:56 UTC (rev 686)
+++ sysvinit/trunk/debian/initscripts/postinst	2006-01-23 11:18:52 UTC (rev 687)
@@ -77,12 +77,6 @@
 fi
 
 #
-# Eliminate experimental crap
-#
-rm -f /etc/init.d/mountdevsubfs                          # NEEDED ONLY UNTIL NEXT UNSTABLE UPLOAD
-update-rc.d -f mountdevsubfs remove >/dev/null 2>&1 || : # NEEDED ONLY UNTIL NEXT UNSTABLE UPLOAD
-
-#
 # In 2.86.ds1-7 the "single" script was moved.
 # We have to remove the old links _before_ we install new ones.
 #
@@ -149,7 +143,7 @@
 # Create initial log files
 #
 [ "$PREV_VER" ] || chmod 755 /var/log/fsck || :
-for F in /var/log/dmesg /var/log/fsck/checkroot /var/log/fsck/checkfs
+for F in /var/log/dmesg /var/log/boot /var/log/fsck/checkroot /var/log/fsck/checkfs
 do
 	if [ ! -f "$F" ] && touch "$F" >/dev/null 2>&1
 	then

Modified: sysvinit/trunk/debian/initscripts/postrm
===================================================================
--- sysvinit/trunk/debian/initscripts/postrm	2006-01-23 11:07:56 UTC (rev 686)
+++ sysvinit/trunk/debian/initscripts/postrm	2006-01-23 11:18:52 UTC (rev 687)
@@ -7,9 +7,52 @@
  
 case "$1" in
   purge)
-	# Remove abandoned conffile
-	rm -f /etc/init.d/bootclean.sh /etc/init.d/bootclean.sh.dpkg-old
+	#
+	# Remove abandoned conffiles
+	#
+	rm -f \
+		/etc/init.d/bootclean.sh \
+		/etc/init.d/bootclean.sh.dpkg-old
+
+	#
+	# Remove configuration files
+	#
+	rm -f \
+		/etc/default/rcS \
+		/etc/nologin \
+		/etc/motd.tail \
+		/etc/motd.static \
+		/etc/motd
+
+	#
+	# Remove state files
+	#
+	rm -f /var/lib/initscripts/nologin
+
+	#
+	# Remove run time state files
+	#
+	rm -f /var/run/motd
+
+	#
+	# Remove log files
+	#
+	rm -f \
+		/var/log/dmesg \
+		/var/log/boot \
+		/var/log/fsck/checkroot \
+		/var/log/fsck/checkfs
+
+	#
+	# Remove old experimental crap
+	# (This can be removed soon.)
+	#
+	rm -f /etc/init.d/mountdevsubfs
+	update-rc.d -f mountdevsubfs remove >/dev/null 2>&1 || :
+
+	# Remove rc symlinks ?
+	# Remove /dev/pts and /dev/shm ?
 	;;
 esac
 
-exit 0
+:




More information about the Pkg-sysvinit-commits mailing list