From 7de63c72e6f701af4142951bfd28ae42a51123ff Mon Sep 17 00:00:00 2001 From: "Bruno G. Albuquerque" Date: Fri, 25 Apr 2008 16:35:35 +0000 Subject: [PATCH] - 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 --- data/system/boot/Bootscript | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/data/system/boot/Bootscript b/data/system/boot/Bootscript index bd9fb6da13..79d9eca5c2 100644 --- a/data/system/boot/Bootscript +++ b/data/system/boot/Bootscript @@ -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