Added initial version of some scripts for the boot process.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9776 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2004-11-03 16:36:40 +00:00
parent d0f68c485f
commit 1583190bd8
3 changed files with 203 additions and 0 deletions
+46
View File
@@ -0,0 +1,46 @@
## The system's main boot script.
##
## Some functions used by the main script
##
# launch <executable path> [thread to wait for]
launch () {
if [ -f "/boot/$1" ]
then
"/boot/$1" &
[ "$2" != "" ] && waitfor "$2"
return 1
else
echo There is no "$1"
fi
return 0
}
# launchscript <script path>
launchscript() {
if [ -f "/boot/$1" ]
then
. "/boot/$1"
fi
}
##
## Main script starts here
##
# Set up stdin/out/err to nirvana
exec </dev/null
exec >/dev/null 2>&1
# Set up the environment
SCRIPTS=beos/system/boot
launchscript $SCRIPTS/SetupEnvironment
# Launch consoled
launch beos/bin/consoled