mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-04 00:57:14 +08:00
19 lines
502 B
Plaintext
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
|
|
|
|
}
|