summaryrefslogtreecommitdiff
path: root/debian/hurd.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/hurd.postinst')
-rw-r--r--debian/hurd.postinst9
1 files changed, 9 insertions, 0 deletions
diff --git a/debian/hurd.postinst b/debian/hurd.postinst
index 807366b7..98945eed 100644
--- a/debian/hurd.postinst
+++ b/debian/hurd.postinst
@@ -20,6 +20,15 @@ update-alternatives \
update-alternatives \
--install /usr/bin/w w /usr/bin/w-hurd 60
+if [ "$1" = configure ]; then
+ add-shell /bin/loginpr || true
+ if ! getent passwd login >/dev/null; then
+ adduser --disabled-password --quiet --system \
+ --home /etc/login --no-create-home --shell /bin/loginpr \
+ --gecos "login user" --group login
+ fi
+fi
+
#DEBHELPER#
if [ "$1" = configure ] && [ "$2" ]; then