haiku/data/system/boot/Bootscript
Jérôme Duval 8ed1dffdb2 added dstcheck
it is still commented atm because we aren't ready to show windows in graphics mode


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10456 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-14 16:38:47 +00:00

69 lines
959 B
Plaintext

## 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
}
# runprog <executable path>
runprog() {
if [ -f "/boot/$1" ]
then
"/boot/$1"
return 1
else
echo There is no "$1"
fi
return 0
}
##
## Main script starts here
##
# Set up stdin/out/err to nirvana
exec </dev/null
exec >/dev/null 2>&1
# Set up the environment
export SAFEMODE=`/bin/safemode`
SCRIPTS=beos/system/boot
launchscript $SCRIPTS/SetupEnvironment
# Sets timezone etc.
runprog beos/bin/clockconfig
# Launch consoled
launch beos/bin/consoled
# Check for daily saving time
# TODO to be launched when tracker and deskbar are launched
#launch beos/bin/dstcheck