summaryrefslogtreecommitdiff
path: root/debian/hurd.postinst
blob: f733e82e389998e35d403e08b5d1bc945cc9ec9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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" --no-create-home login
	chsh -s /bin/bash login
fi

#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