Add external script template file (forgotten in previous commit). Export variable that could be needed by this script.
Correct target device initialization : if initialized to /dev/null, script does not start since it is not a block device. Initialized it empty.