summaryrefslogtreecommitdiff
path: root/debian/hurd.postinst
blob: 6df4bfba515336af2a6d879f9f4920a4c45dfc87 (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
#!/bin/sh

set -e

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

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

#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