mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 07:47:20 +08:00
810cecf13b
util-linux: update udev: bump to 181 initscripts(-live): bump to 2012.02 mkinitcpio: update
31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
post_upgrade() {
|
|
|
|
if [ "$(vercmp $2 2011.06.1)" -lt 0 ]; then
|
|
echo "Blacklisting of modules is no longer supported in rc.conf,"
|
|
echo "please add blacklist entries to /etc/modprobe.d/ instead."
|
|
fi
|
|
|
|
if [ "$(vercmp $2 2011.07.2)" -lt 0 ]; then
|
|
echo "VERBOSE= in rc.conf no longer has any effect."
|
|
echo "Please append 'quiet' to your kernel command line."
|
|
fi
|
|
|
|
if [ "$(vercmp $2 2011.10.1)" -lt 0 ]; then
|
|
echo "If using non-bash-compatible shell, please set LANG in /etc/locale.conf,"
|
|
echo "as LOCALE in /etc/rc.conf no longer works."
|
|
rcdata=$(cat /etc/rc.conf | grep "LOCALE=" | grep -v "DAEMON" | cut -d '"' -f2)
|
|
if [ "$rcdata" != "" ] ; then
|
|
rm /etc/locale.conf
|
|
echo "Found old language configuration in /etc/rc.conf"
|
|
echo "the file /etc/locale.conf will be configured automatically"
|
|
echo "LANG=${rcdata}" >> /etc/locale.conf
|
|
echo "LC_MESSAGES=${rcdata}" >> /etc/locale.conf
|
|
echo " "
|
|
fi
|
|
if [ -f /etc/profile.d/locale,sh ] ; then
|
|
rm /etc/profile.d/locale.sh
|
|
fi
|
|
mv /etc/profile.d/locale.sh.new /etc/profile.d/locale.sh
|
|
fi
|
|
}
|