File: postrm

package info (click to toggle)
diablo 1.16.test2-1
  • links: PTS
  • area: non-free
  • in suites: slink
  • size: 1,504 kB
  • ctags: 1,603
  • sloc: ansic: 17,654; perl: 2,054; sh: 260; csh: 118; makefile: 73
file content (23 lines) | stat: -rw-r--r-- 552 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#! /bin/sh

if [ "$1" = "purge" ]
then
	echo "Purging startup links.."
	update-rc.d diablo remove >/dev/null 2>&1
	echo "Purging active file and history data.."
	rm -f /var/lib/news/active* /var/lib/news/history*
	#
	# We do not remove /var/spool/news because that might
	# take a lot of time. Most of the time it is on a seperate
	# disk anyway and it is faster to do a mkfs on it..
	#
	echo "Remove the news spool in /var/spool/news yourself!"
fi

if [ "$1" = "remove" ]
then
	# Remove the temp files in /var/run
	rm -rf /var/run/diablo/*
fi

exit 0