File: post_setup_force-unsafe-io

package info (click to toggle)
piuparts 0.62
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 1,692 kB
  • sloc: python: 6,823; sh: 2,194; makefile: 126
file content (17 lines) | stat: -rwxr-xr-x 335 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
set -e

if [ ! -f /etc/dpkg/dpkg.cfg.d/piuparts-force-unsafe-io ]
then
	if dpkg --force-help | grep -q unsafe-io
	then
		echo "Enabling dpkg --force-unsafe-io."
		echo force-unsafe-io > /etc/dpkg/dpkg.cfg.d/piuparts-force-unsafe-io
	fi
fi

if [ ! -h /bin/sync ]
then
	dpkg-divert --rename /bin/sync
	ln -sv true /bin/sync
fi