blob: 0f1326da6900c2c68ba71dee611aed94de1d5bea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
#!/bin/sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin
export PATH
SHELL=/bin/sh
RUNCOM=/libexec/rc
mkdir /servers/
mkdir /servers/socket
settrans -c /servers/socket/1 /hurd/pflocal
settrans -c /servers/socket/2 /hurd/pfinet
settrans -ck /servers/exec /hurd/exec
settrans -c /servers/crash-suspend /hurd/crash --suspend
settrans -c /servers/crash-kill /hurd/crash --kill
settrans -c /servers/password /hurd/password
settrans -c /servers/crash-suspend /hurd/crash --suspend
settrans -c /servers/crash-dump-core /hurd/crash --dump-core
ln -s crash-kill /servers/crash
ln -s 1 /servers/socket/local
ln -s 2 /servers/socket/inet
# would be better than the -N parameter given to genext2fs
#settrans /dev /hurd/tmpfs 1M
#ln -s /sbin/MAKEDEV /dev
cd /dev
rm -f null
rm -f console
echo "setting up /dev"
./MAKEDEV fd
./MAKEDEV std ptyp ptyq com0 vcs tty1 tty2 tty3 tty4 tty5 tty6 hd0 hd1 hd2 hd3 loop0 loop1
echo "setting up /dev/hd*"
for i in 0 1 2 3
do
for j in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
do
./MAKEDEV hd${i}s${j}
done
done
cd /
echo "running rc"
# Run the rc script. As long as it exits nonzero, punt to single-user.
# After the single-user shell exits, we will start over attempting to
# run rc; but later invocations strip the `autoboot' argument.
until $rc; do
rc=${RUNCOM}
# Run single-user shell and repeat as long as it dies with a signal.
until ${SHELL} || test $? -lt 128; do
:
done
done
# Touch the first tty so that the Hurd console is certain to pick it
# and not some random other tty.
touch /dev/tty1
# Startup the Hurd console.
console -d vga -d pc_kbd -c /dev/vcs
echo "Starting d-i's init in 2s, hoping for the best"
sleep 2
/init
echo "d-i init died"
exit 1
|