summaryrefslogtreecommitdiff
path: root/debian/hurd.postinst
blob: 2e7ff488f40684972768ba08ea4c3b404956eb4d (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
#!/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 [ ! -e /dev/mouse ]; then
  ln -s /dev/cons/mouse /dev/mouse
fi

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