This file is indexed.

postinst is in byobu 5.77-0ubuntu1.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/sh -e

. /usr/share/debconf/confmodule
db_version 2.0

PKG="byobu"

db_get byobu/launch-by-default || true
if [ "$RET" = true ]; then
	ln -sf /usr/bin/$PKG-launch /etc/profile.d/Z98-$PKG.sh
else
	rm -f /etc/profile.d/Z98-$PKG.sh
fi

# Clean up any old-school screen-profiles diversions of /usr/bin/screen
if [ -f /usr/bin/screen ] && [ -f /usr/bin/screen.real ]; then
	divertpkg=$(dpkg-divert --listpackage /usr/bin/screen || true)
	if [ "$divertpkg" = "screen-profiles" ]; then
		rm -f /usr/bin/screen
		dpkg-divert --package screen-profiles --rename --remove /usr/bin/screen
	fi
fi

# Remove the short-lived MOTD message
rm -f /etc/update-motd.d/55-window-manager

# Attempt to notify users that they should reload their profile
touch_flag() {
	touch "$1" || true
	chown --reference $(dirname "$1") "$1" || true
	chmod 700 "$1" || true
}
[ -r "/etc/$PKG/socketdir" ] && . "/etc/$PKG/socketdir"
if [ -d "$SOCKETDIR" ]; then
	for d in "$SOCKETDIR"/S-*; do
		if [ -d "$d/$PKG" ]; then
			# New location of the reload flag
			touch_flag "$d/$PKG/reload-required"
		elif [ -d "$d" ]; then
			# Old location of the reload flag
			touch_flag "$d/$PKG.reload-required"
		fi
	done
fi

# Clean-up obsolete config file
rm -f /etc/byobu/statusrc || true

# Automatically added by dh_icons
if which update-icon-caches >/dev/null 2>&1 ; then
	update-icon-caches /usr/share/icons/HighContrast
fi
# End automatically added section


# vi: syntax=sh ts=4 noexpandtab