]> spindle.queued.net Git - xodist/blob - configs/generic/hooks
ed7aec1a259b64acfd1581645dffddad0ec740cc
[xodist] / configs / generic / hooks
1 # Default hooks - copy & customize this for a new image build
2
3
4 customize_chroot_hook()
5 {
6         ROOT_DIR="$1"
7
8         # Any customizations that need to be made to the chroot after the base system
9         # has been installed (but prior to further package installation) should be
10         # put here.  $ROOT_DIR should be prefixed to any paths.
11 }
12
13 package_configure_hook()
14 {
15         ROOT_DIR="$1"
16
17         # Any customizations that need to be made after all packages have been
18         # installed should be put here.  $ROOT_DIR should be prefixed to any
19         # paths.
20
21         # configure openntpd (to run w/ -s by default)
22         F=${ROOT_DIR}/etc/default/openntpd
23         if [ -f ${F} ]; then
24                 sed --in-place "s/^.*DAEMON_OPTS=/DAEMON_OPTS=/" ${F}
25         fi
26
27 }
28
29 cleanup_chroot_hook()
30 {
31         ROOT_DIR="$1"
32
33         # Any customizations that need to be made after the chroot creation is
34         # complete should be put here.  $ROOT_DIR should be prefixed to any
35         # paths.
36 }