File: postinst

package info (click to toggle)
util-linux 2.12p-4sarge2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 8,696 kB
  • ctags: 5,095
  • sloc: ansic: 46,097; sh: 4,939; makefile: 1,100; perl: 86; csh: 62; sed: 55
file content (37 lines) | stat: -rw-r--r-- 1,252 bytes parent folder | download
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
#! /bin/sh

umask 022
set -e

install-info --quiet --section "Development" "Development" \
  --description="System V interprocess communication facilities" \
  /usr/share/info/ipc.info.gz
update-alternatives --install /usr/bin/pager pager /bin/more 50 \
  --slave /usr/share/man/man1/pager.1.gz pager.1.gz /usr/share/man/man1/more.1.gz
update-alternatives --install /usr/bin/pager pager /bin/pg 10 \
  --slave /usr/share/man/man1/pager.1.gz pager.1.gz /usr/share/man/man1/pg.1.gz

#
#	Check if links to hwclock.sh are present in runlevel "6".
#	If not, remove the ones from runlevel "S" so that
#	update-rc.d will do it's job.
#
if [ ! -f /etc/rc6.d/???hwclock.sh ] && [ ! -f /etc/rc0.d/???hwclock.sh ]
then
	rm -f /etc/rcS.d/???hwclock.sh
fi

# hwclock works on all Linux architectures, except s390 (and s390x, of course).
if [ "$(uname -s)" = "Linux" ]; then
    model=$(uname -m)
    if [ ${model%x} != "s390" ]; then
        update-rc.d -f hwclock.sh remove 2>/dev/null > /dev/null
        update-rc.d hwclock.sh start 50 S . stop 25 0 6 . > /dev/null
        update-rc.d -f hwclockfirst.sh remove 2>/dev/null > /dev/null
        update-rc.d hwclockfirst.sh start 18 S . > /dev/null
    fi
fi

if [ -x /usr/sbin/update-mime ]; then
	update-mime
fi