summaryrefslogtreecommitdiff
path: root/debian/hurd.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/hurd.postinst')
-rw-r--r--debian/hurd.postinst29
1 files changed, 29 insertions, 0 deletions
diff --git a/debian/hurd.postinst b/debian/hurd.postinst
new file mode 100644
index 00000000..807366b7
--- /dev/null
+++ b/debian/hurd.postinst
@@ -0,0 +1,29 @@
+#!/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#
+
+if [ "$1" = configure ] && [ "$2" ]; then
+ # Upgrade: create the missing device and server nodes
+ /usr/lib/hurd/setup-translators -K
+fi
+