- 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:
@@ -18,6 +18,18 @@ launch() {
|
|||||||
return 0
|
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>
|
# launchscript <script path>
|
||||||
|
|
||||||
launchscript() {
|
launchscript() {
|
||||||
@@ -119,6 +131,11 @@ if [ "$SAFEMODE" != "yes" ]; then
|
|||||||
launch $SERVERS/print_server
|
launch $SERVERS/print_server
|
||||||
fi
|
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
|
# Check for daily saving time
|
||||||
launch beos/bin/dstcheck
|
launch beos/bin/dstcheck
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user