--- script/vboxtoolinit.org 2012-04-29 21:59:59.000000000 +0200 +++ script/vboxtoolinit 2012-06-16 01:26:32.000000000 +0200 @@ -1,14 +1,14 @@ -#!/bin/bash +#!/usr/local/bin/bash # # vboxtoolinit: Frontend for vboxtool for auto start sessions when booting and save # sessions when host is stopped # -# This is a wrapper for vboxtool. It is to be placed in /etc/init.d to provide auto +# This is a wrapper for vboxtool. It is to be placed in /usr/loca/etc/rc.d to provide auto # start at boot time and stop when the host is halted. Because it's a wrapper, the # original functions of vboxtool can be executed as usual, without cd'ing to -# /etc/init.d. +# /usr/local/etc/rc.d. # -# Usage: Should be placed in /etc/init.d +# Usage: Should be placed in /usr/local/etc/rc.d # # Copyright (C) 2008 Mark Baaijens # @@ -44,7 +44,7 @@ start() { # 'vboxtoolinit start' maps to 'vboxtool autostart'; when the host boots, all sessions in - # the config file /etc/vboxtool/machines.conf are started + # the config file /usr/local/etc/vboxtool/machines.conf are started nohup $su_command "vboxtool autostart" > /dev/null } @@ -62,7 +62,7 @@ } # Some constants -config_file='/etc/vboxtool/vboxtool.conf' +config_file='/usr/local/etc/vboxtool/vboxtool.conf' # Retrieve settings from config file, just by executing the config file. # Config file $config_file should look like this: