summaryrefslogtreecommitdiff
path: root/debian/hurd.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/hurd.postinst')
-rw-r--r--debian/hurd.postinst48
1 files changed, 48 insertions, 0 deletions
diff --git a/debian/hurd.postinst b/debian/hurd.postinst
new file mode 100644
index 00000000..3713c7e6
--- /dev/null
+++ b/debian/hurd.postinst
@@ -0,0 +1,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