core/initscripts-testing/initscripts.install
2010-06-29 08:27:45 +00:00

19 lines
502 B
Plaintext

post_install() {
echo "==> Fixing /etc/rc.conf"
cp /etc/rc.conf /etc/rc.conf.pacnew
cp /etc/rc.conf.pacsave /etc/rc.conf
}
post_upgrade() {
if [ "$(vercmp $2 2009.07)" -lt 0 ]; then
echo "==> Adjusting /etc/inittab for transition to /dev/tty standard."
echo "==> Original file saved as /etc/inittab.pacsave"
sed -i'.pacsave' 's#vc/\([0-9]\)#tty\1#' /etc/inittab
fi
echo "==> Fixing /etc/rc.conf"
cp /etc/rc.conf /etc/rc.conf.pacnew
cp /etc/rc.conf.pacsave /etc/rc.conf
}