Lines 78-85
Link Here
|
78 |
|
78 |
|
79 |
insinto /etc |
79 |
insinto /etc |
80 |
doins "${WORKDIR}"/inittab || die "inittab" |
80 |
doins "${WORKDIR}"/inittab || die "inittab" |
|
|
81 |
doins "${FILESDIR}"/reboot.sh || die "reboot.sh" |
82 |
doins "${FILESDIR}"/shutdown.sh || die "shutdown.sh" |
81 |
|
83 |
|
82 |
doinitd "${FILESDIR}"/{reboot,shutdown}.sh || die |
84 |
newinitd "${FILESDIR}"/halt.initd halt |
|
|
85 |
} |
86 |
|
87 |
pkg_preinst() { |
88 |
# First time installs add halt to the shutdown runlevel |
89 |
if [ ! -e "${ROOT}"/etc/init.d/halt ]; then |
90 |
einfo "Auto adding halt init script to the shutdown runlevel" |
91 |
ln -sf /etc/init.d/halt "${ROOT}"/etc/runlevels/shutdown |
92 |
fi |
83 |
} |
93 |
} |
84 |
|
94 |
|
85 |
pkg_postinst() { |
95 |
pkg_postinst() { |