File: usb-modeswitch-data.postinst

package info (click to toggle)
usb-modeswitch-data 20150115-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,796 kB
  • ctags: 18
  • sloc: makefile: 53; tcl: 53; 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