summaryrefslogtreecommitdiff
path: root/debian/hurd.postinst
blob: 3713c7e67b790c467552132bfe9fcb391d88f628 (plain)
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
#!/bin/sh

set -e

update-alternatives --quiet \
	--install /libexec/runsystem runsystem /libexec/runsystem.gnu 20

update-alternatives \
	--install /usr/bin/fakeroot fakeroot /usr/bin/fakeroot-hurd 30

update-alternatives \
	--install /bin/ps ps /bin/ps-hurd 60

update-alternatives \
	--install /usr/bin/uptime uptime /usr/bin/uptime-hurd 30

update-alternatives \
	--install /usr/bin/vmstat vmstat /usr/bin/vmstat-hurd 60

update-alternatives \
	--install /usr/bin/w w /usr/bin/w-hurd 60

#DEBHELPER#

for i in vcs tty1 tty2 tty3 tty4 tty5 tty6; do
	if ! [ -e /dev/$i ]; then
		cd /dev
		/sbin/MAKEDEV $i || true
	fi
done

if [ ! -h /dev/mouse ]; then
  ln -s /dev/cons/mouse /dev/mouse
fi

if [ ! -h /dev/kbd ]; then
  ln -s /dev/cons/kbd /dev/kbd
fi

if [ ! -e /dev/shm ]; then
  mkdir /dev/shm
  chmod 1777 /dev/shm
fi

if [ ! -e /proc ]; then
  mkdir /proc
  settrans -c /proc /hurd/procfs
fi