File: postrm

package info (click to toggle)
chrony 1.21z-5
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 2,080 kB
  • ctags: 2,375
  • sloc: ansic: 14,831; yacc: 858; sh: 588; perl: 426; makefile: 148
file content (27 lines) | stat: -rw-r--r-- 750 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
set -e
# postrm for chrony John Hasler 1998-2006
# Any possessor of a copy of this program may treat it as if it
# were in the public domain.  I waive all rights.
rm -f /var/lib/chrony/*
if [ -x /usr/bin/update-menus ] ; then 
	/usr/bin/update-menus
fi

if [ "$1" = "purge" ] ; then
    rm -rf /etc/chrony/chrony.conf
    if which ucf >/dev/null; then
	ucf --purge /etc/chrony/chrony.conf
    fi
    if which ucfr >/dev/null; then
	ucfr --purge chrony /etc/chrony/chrony.conf
    fi
    rm -rf /var/lib/chrony
    rm -rf /usr/share/chrony
    rm -rf /var/log/chrony
    rm -rf /etc/cron.weekly/chrony
    rm -rf /etc/ppp/ip-up.d/chrony
    rm -rf /etc/ppp/ip-down.d/chrony
    rm -rf /etc/chrony
    update-rc.d chrony remove >/dev/null
fi