File: postinst

package info (click to toggle)
oroborus 2.0.18
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 15,264 kB
  • ctags: 513
  • sloc: ansic: 6,518; makefile: 809; sh: 808
file content (20 lines) | stat: -rw-r--r-- 485 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e

# Register as an x-window-manager
if [ "$1" = "configure" ]; then
  if [ "$2" ] && dpkg --compare-versions $2 le 0.51.3-12; then
	update-alternatives --remove x-window-manager /etc/X11/window-managers
  fi
fi
update-alternatives --install /usr/bin/x-window-manager \
x-window-manager /usr/bin/oroborus 50
		
# Restart all running oroboruses
if [ "$(pidof oroborus)" ]; then
	# use /bin/kill to be sure its procps ;P
	/bin/kill -HUP $(pidof oroborus)
fi

#DEBHELPER#