25 lines
410 B
Bash
25 lines
410 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
do_configure() {
|
|
if ! [ -e /etc/path_to_inst ]; then
|
|
echo "Creating initial /etc/path_to_inst"
|
|
echo '#path_to_inst_bootstrap_1' > /etc/path_to_inst
|
|
fi
|
|
if ! [ -e /etc/system ]; then
|
|
echo "Creating empty /etc/system"
|
|
touch /etc/system
|
|
fi
|
|
}
|
|
|
|
case "$1" in
|
|
configure)
|
|
do_configure
|
|
dpkg-trigger boot-archive
|
|
;;
|
|
esac
|
|
|
|
exit 0
|
|
|