89-example 396 Bytes
Newer Older
Michael Shigorin's avatar
Michael Shigorin committed
1 2 3 4 5 6 7
#!/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
8
echo "$0: WORKDIR=$WORKDIR; directory listing:"
Michael Shigorin's avatar
Michael Shigorin committed
9 10 11 12 13
ls -l "$WORKDIR"

# and let's _not_ terminate with non-zero for no real reason;
# ":" is a shell builtin command like true(1)
: