- Added function launch_param_1() to Bootscript. It launchs servers/programs
that requires a single parameter. - Added launching mail_daemon to Bootscript. It will only start if the user set it to start on boot in the E-mail preferences app. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25161 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -16,7 +16,19 @@ launch() {
|
||||
echo There is no "$1"
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
}
|
||||
|
||||
launch_param_1() {
|
||||
if [ -f "/boot/$1" ]
|
||||
then
|
||||
"/boot/$1" $2 &
|
||||
[ "$3" != "" ] && waitfor "$3"
|
||||
return 1
|
||||
else
|
||||
echo There is no "$1"
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
|
||||
# launchscript <script path>
|
||||
|
||||
@@ -78,7 +90,7 @@ launch $SERVERS/debug_server # launch debug_server
|
||||
|
||||
# Init Network
|
||||
if [ "$SAFEMODE" != "yes" ]; then
|
||||
launch $SERVERS/net_server # launch net_server
|
||||
launch $SERVERS/net_server # launch net_server
|
||||
fi
|
||||
|
||||
if [ "$SAFEMODE" != "yes" ]; then
|
||||
@@ -119,6 +131,11 @@ if [ "$SAFEMODE" != "yes" ]; then
|
||||
launch $SERVERS/print_server
|
||||
fi
|
||||
|
||||
# Launch Mail Daemon (if enabled on startup)
|
||||
if [ "$SAFEMODE" != "yes" ]; then
|
||||
launch_param_1 $SERVERS/mail_daemon -E
|
||||
fi
|
||||
|
||||
# Check for daily saving time
|
||||
launch beos/bin/dstcheck
|
||||
|
||||
|
||||
Reference in New Issue
Block a user