Support automatic execution of scripts on VirtualBox shared folders
authorMichael Prokop <mika@grml.org>
Mon, 24 Feb 2014 14:24:22 +0000 (15:24 +0100)
committerMichael Prokop <mika@grml.org>
Mon, 24 Feb 2014 14:24:22 +0000 (15:24 +0100)
commit6992b6808072f97e3b7870dec51c5fc19e55aa91
tree54bc1a83910ac5887c7f6f6c335ed35bbcc366cc
parent3cb99a2f480e6012c09528a49514fafed3073d7d
Support automatic execution of scripts on VirtualBox shared folders

If an executable /media/sf_automation/$distri is present (where
$distri defaults to "grml" if unset) it is automatically executed
during bootup. The '/media/sf_automation' directory corresponds
to a shared folder named "automation" inside VirtualBox (which
has the auto-mount option set inside the VirtualBox configuration
to be useful).

The feature can be disabled via boot option 'novbautomation' and
the path to the automation directory can be controlled via boot
option 'vbautomation' (e.g. 'vbautomation='/media/sf_foobar', so
don't forget the "/media/sf_").

This feature provides a nice way to automate things during bootup
inside VirtualBox without having to adjust any boot options,
while still being able to control the behaviour from the host
system via setup of shared folders.
autoconfig.functions