core/initscripts-testing/initscripts.install

19 lines
502 B
Plaintext
Raw Normal View History

2010-06-29 16:27:45 +08:00
post_install() {
echo "==> Fixing /etc/rc.conf"
cp /etc/rc.conf /etc/rc.conf.pacnew
cp /etc/rc.conf.pacsave /etc/rc.conf
}
2010-06-29 15:52:46 +08:00
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
2010-06-29 16:27:45 +08:00
echo "==> Fixing /etc/rc.conf"
cp /etc/rc.conf /etc/rc.conf.pacnew
cp /etc/rc.conf.pacsave /etc/rc.conf
2010-06-29 15:52:46 +08:00
}