File: postinst

package info (click to toggle)
procps 1%3A2.0.6-5
  • links: PTS
  • area: main
  • in suites: potato
  • size: 932 kB
  • ctags: 1,146
  • sloc: ansic: 10,494; makefile: 229; sh: 80
file content (24 lines) | stat: -rw-r--r-- 454 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
set -e

if [ -e /etc/psdevtab ] ; then
	rm -f /etc/psdevtab
fi
if [ -e /etc/psdatabase ] 
then
	rm -f /etc/psdatabase
fi
# Remove old /etc/init.d/procps file, Bug #53818
if [ -e /etc/init.d/procps ]
then
	rm -f /etc/init.d/procps
fi

#
# Now to do the alternatives for w and ps
update-alternatives --install /usr/bin/w w /usr/bin/w.procps 50 \
	--slave /usr/share/man/man1/w.1.gz w.1.gz /usr/share/man/man1/w.procps.1.gz

ldconfig

#DEBHELPER#