File: usb-modeswitch-data.postinst

package info (click to toggle)
usb-modeswitch-data 20120815-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,440 kB
  • sloc: makefile: 50; sh: 26
file content (14 lines) | stat: -rw-r--r-- 357 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

set -e

# DH calls will remove (or keep) the configuration files, our acting must happen after that.
#DEBHELPER#

if [ "$1" = configure ];
then
	# Move backup'ed files back in place, but only once.
	if dpkg --compare-versions "$2" le "20110227-1"; then
		find /etc/usb_modeswitch.d/ -name '*.dpkg-bak' -exec rename 's/\.dpkg-bak$//' {} \;
	fi
fi