lix/sys/start

39 lines
657 B
Text
Raw Normal View History

2003-03-13 14:24:49 +00:00
#! /pkg/prog-bootstrap/bin/sh
# This directory contains nix.
export PATH=/pkg/sys/bin
# Add in the utilities needed for booting.
export PATH=$PATH:`nix getpkg 5703121fe19cbeeaee7edd659cf4a25b`/bin
2003-03-13 14:24:49 +00:00
echo
echo Starting up...
echo Mounting file systems...
mount -n -o remount,rw /dev/root /
mount -n -t proc none /proc
mount -n -t hostfs none /mnt/host
echo Registering available sources...
( if cd /src; then
for i in *; do
nix reg $i
done
fi
2003-03-13 14:24:49 +00:00
)
export PATH=`nix getpkg coreutils-4.5.7`/bin:$PATH
2003-03-13 14:24:49 +00:00
echo
echo "=== starting interactive shell ==="
sh
echo
echo Shutting down...
umount /proc
#sync
mount -n -o remount,ro /dev/root /
#sync