File: preinst

package info (click to toggle)
l7-protocols 20090528-4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,372 kB
  • sloc: ansic: 1,128; cpp: 261; sh: 231; makefile: 30
file content (12 lines) | stat: -rwxr-xr-x 281 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
set -e

if [ "$1" = "upgrade" -a "$2" = "20090528-1" ]; then
	for symlink in $(find /etc/l7-protocols -type l -name '*.pat'); do
		if [ $(printf "%s\n" $symlink | sed -e 's:^/etc:/usr/share:') = $(readlink $symlink) ]; then
			rm -f "$symlink"
		fi
	done
fi

#DEBHELPER#