Files
initscripts/SNAP/usher
Jay Larson 17afdf7765 The following changes were made:
* removed quotes around chroot command in usher
  * removed hwclock from Required-Start in checkfs
  * removed $local_fs from Required-Start in hostname
  * updated mountvirtfs to create /run/utmp
  * added 2 conditionals to readsvcs() in update-rc
2017-05-20 09:18:03 -05:00

42 lines
758 B
Bash
Executable File

#!/bin/bash
set -e
case $1 in
preinst)
exit 0
;;
postinst)
echo "[ENVIRONMENT]\n"
env
echo "TARGET: ${TARGET}"
if [[ ${TARGET} ]]; then
chroot ${TARGET} update-rc required
else
update-rc required
fi
if [ ! -f ${TARGET}/etc/modules.conf ]; then
cp ${TARGET}/usr/share/initscripts/modules.conf \
${TARGET}/etc/modules.conf
fi
if [ ! -f ${TARGET}/etc/default/halt ]; then
cp ${TARGET}/usr/share/initscripts/halt.default \
${TARGET}/etc/default/halt
fi
if [ ! -f ${TARGET}/etc/default/rcS ]; then
cp ${TARGET}/usr/share/initscripts/rcS.default \
${TARGET}/etc/default/rcS
fi
;;
prerm)
exit 0
;;
postrm)
exit 0
;;
esac