| pkg_preinst() { |
pkg_preinst() { |
| local f |
local f |
| |
|
| |
# default net script is just comments, so no point in biting people |
| |
# in the ass by accident |
| |
mv "${D}"/etc/conf.d/net "${T}"/ |
| |
[[ -e ${ROOT}/etc/conf.d/net ]] && cp "${ROOT}"/etc/conf.d/net "${T}"/ |
| |
|
| # /etc/conf.d/clock moved to /etc/conf.d/hwclock |
# /etc/conf.d/clock moved to /etc/conf.d/hwclock |
| local clock |
local clock |
| use kernel_FreeBSD && clock="adjkerntz" || clock="hwclock" |
use kernel_FreeBSD && clock="adjkerntz" || clock="hwclock" |
| # Remove old baselayout links |
# Remove old baselayout links |
| rm -f "${ROOT}"/etc/runlevels/boot/{check{fs,root},rmnologin} |
rm -f "${ROOT}"/etc/runlevels/boot/{check{fs,root},rmnologin} |
| |
|
| |
[[ -e ${T}/net && ! -e ${ROOT}/etc/conf.d/net ]] && mv "${T}"/net "${ROOT}"/etc/conf.d/net |
| |
|
| # Make our runlevels if they don't exist |
# Make our runlevels if they don't exist |
| if [[ ! -e ${ROOT}/etc/runlevels ]] ; then |
if [[ ! -e ${ROOT}/etc/runlevels ]] ; then |
| einfo "Copying across default runlevels" |
einfo "Copying across default runlevels" |