Mercurial > hg > aboriginal
comparison sources/root-filesystem/sbin/init.sh @ 1247:84ea1b53b73c
Mounting /dev/pts is useful.
author | Rob Landley <rob@landley.net> |
---|---|
date | Wed, 15 Sep 2010 18:06:08 -0500 |
parents | 1a24dc2bb3cb |
children | 8c0b1c9b6525 |
comparison
equal
deleted
inserted
replaced
1246:9f58f9a6b9e4 | 1247:84ea1b53b73c |
---|---|
7 export HOME=/home | 7 export HOME=/home |
8 | 8 |
9 # Populate /dev | 9 # Populate /dev |
10 mountpoint -q sys || mount -t sysfs sys sys | 10 mountpoint -q sys || mount -t sysfs sys sys |
11 mountpoint -q dev || mount -t tmpfs -o noatime dev dev | 11 mountpoint -q dev || mount -t tmpfs -o noatime dev dev |
12 mountpoint -q proc || mount -t proc proc proc | |
13 mountpoint -q dev/pts || mount -t devpts dev/pts dev/pts | |
14 | |
12 mdev -s | 15 mdev -s |
13 | |
14 # Make sure /proc is there | |
15 mountpoint -q proc || mount -t proc proc proc | |
16 | 16 |
17 [ -z "$CPUS" ] && export CPUS=1 | 17 [ -z "$CPUS" ] && export CPUS=1 |
18 export PS1='($HOST:$CPUS) \w \$ ' | 18 export PS1='($HOST:$CPUS) \w \$ ' |
19 | 19 |
20 # Make sure $PATH is exported, even if not set on kernel command line. | 20 # Make sure $PATH is exported, even if not set on kernel command line. |
95 # Switch to a shell with command history. | 95 # Switch to a shell with command history. |
96 | 96 |
97 echo Type exit when done. | 97 echo Type exit when done. |
98 /bin/ash | 98 /bin/ash |
99 cd / | 99 cd / |
100 umount ./dev/pts | |
100 umount ./dev | 101 umount ./dev |
101 umount ./sys | 102 umount ./sys |
102 umount ./proc | 103 umount ./proc |
103 sync | 104 sync |
104 fi | 105 fi |