29ce07fb8d
The script would work nevertheless (given the feature's included) but lapses are especially wrong in examples.
14 lines
396 B
Bash
Executable File
14 lines
396 B
Bash
Executable File
#!/bin/sh
|
|
# example script executed by mkimage in _instrumental_ chroot
|
|
# (image-scripts.d/* get executed in _work_ chroot)
|
|
#
|
|
# NB: to be executed, it must be marked executable first :)
|
|
|
|
# let's do something very useful
|
|
echo "$0: WORKDIR=$WORKDIR; directory listing:"
|
|
ls -l "$WORKDIR"
|
|
|
|
# and let's _not_ terminate with non-zero for no real reason;
|
|
# ":" is a shell builtin command like true(1)
|
|
:
|