File: libdjconsole-data.preinst

package info (click to toggle)
libdjconsole 0.1.3-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,064 kB
  • sloc: sh: 7,088; cpp: 1,130; makefile: 78
file content (15 lines) | stat: -rw-r--r-- 428 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -e

if [ "$1" = install ] || [ "$1" = upgrade ]; then
	if [ -e "/etc/udev/rules.d/45-hpdjconsole.rules" ]; then
		if [ "`md5sum \"/etc/udev/rules.d/45-hpdjconsole.rules\" | sed -e \"s/ .*//\"`" = \
		     "`dpkg-query -W -f='${Conffiles}' libdjconsole-data | sed -n -e \"\\\\' /etc/udev/rules.d/45-hpdjconsole.rules's/.* //p\"`" ]
		then
			rm -f "/etc/udev/rules.d/45-hpdjconsole.rules"
		fi
	fi
fi

#DEBHELPER#