core/initscripts/initscripts.install
Jan Mette a20ff5c68a
2010-03-13 15:25:19 +00:00

8 lines
260 B
Plaintext

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
}