core/initscripts/initscripts.install

19 lines
502 B
Plaintext
Raw Normal View History

2010-07-01 03:56:56 +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-03-13 23:25:19 +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-07-01 03:56:56 +08:00
echo "==> Fixing /etc/rc.conf"
cp /etc/rc.conf /etc/rc.conf.pacnew
cp /etc/rc.conf.pacsave /etc/rc.conf
2010-03-13 23:25:19 +08:00
}