summaryrefslogtreecommitdiff
path: root/debian/hurd.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/hurd.postinst')
-rw-r--r--debian/hurd.postinst22
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/hurd.postinst b/debian/hurd.postinst
new file mode 100644
index 00000000..f066a6ef
--- /dev/null
+++ b/debian/hurd.postinst
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+set -e
+
+update-alternatives --quiet \
+ --install /libexec/runsystem runsystem /libexec/runsystem.gnu 20
+
+if ! grep --quiet '^login:' /etc/passwd; then
+ adduser --quiet --system --home /etc/login --gecos "Not logged in" --not-create-home login
+ chsh -s /bin/bash login
+fi
+
+#DEBHELPER#
+
+(cd /dev && /sbin/MAKEDEV vcs) || true
+(cd /dev && /sbin/MAKEDEV tty1) || true
+(cd /dev && /sbin/MAKEDEV tty2) || true
+(cd /dev && /sbin/MAKEDEV tty3) || true
+(cd /dev && /sbin/MAKEDEV tty4) || true
+(cd /dev && /sbin/MAKEDEV tty5) || true
+(cd /dev && /sbin/MAKEDEV tty6) || true
+