mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 23:53:51 +02:00
OpenRC: some fixes for locale service and inittab.
- Fix the locale service when $LOCALE is not, default to "en_US". - Use again ttyX in inittab now the devices are created by udev. Bump revision. --HG-- extra : convert_revision : e7503768b9fca65d90925962cfae13a555b94375
This commit is contained in:
parent
998f619766
commit
0161d3bfd9
2 changed files with 2 additions and 3 deletions
|
@ -13,6 +13,7 @@ start()
|
||||||
{
|
{
|
||||||
: >/etc/profile.d/locale.sh
|
: >/etc/profile.d/locale.sh
|
||||||
chmod 755 /etc/profile.d/locale.sh
|
chmod 755 /etc/profile.d/locale.sh
|
||||||
|
[ -z "$LOCALE" ] && LOCALE="en_US"
|
||||||
|
|
||||||
# Check if requested locale was already created
|
# Check if requested locale was already created
|
||||||
if ! $(locale -a|grep -q $LOCALE.utf8); then
|
if ! $(locale -a|grep -q $LOCALE.utf8); then
|
||||||
|
@ -22,7 +23,6 @@ start()
|
||||||
eend $?
|
eend $?
|
||||||
fi
|
fi
|
||||||
# Set user defined locale
|
# Set user defined locale
|
||||||
[ -z "$LOCALE" ] && LOCALE="en_US"
|
|
||||||
einfo "Setting system locale [$LOCALE] [UTF-8]"
|
einfo "Setting system locale [$LOCALE] [UTF-8]"
|
||||||
echo "export LANG=$LOCALE.UTF-8" >> /etc/profile.d/locale.sh
|
echo "export LANG=$LOCALE.UTF-8" >> /etc/profile.d/locale.sh
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'OpenRC'
|
# Template file for 'OpenRC'
|
||||||
pkgname=OpenRC
|
pkgname=OpenRC
|
||||||
version=0.5.0
|
version=0.5.0
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc=openrc-${version}
|
wrksrc=openrc-${version}
|
||||||
patch_files="xbps-locale-service.diff"
|
patch_files="xbps-locale-service.diff"
|
||||||
distfiles="http://roy.marples.name/downloads/openrc/openrc-$version.tar.bz2"
|
distfiles="http://roy.marples.name/downloads/openrc/openrc-$version.tar.bz2"
|
||||||
|
@ -41,7 +41,6 @@ pre_configure()
|
||||||
|
|
||||||
post_install()
|
post_install()
|
||||||
{
|
{
|
||||||
sed -i -e "s|38400 tty|38400 vc\/|g" ${wrksrc}/support/sysvinit/inittab
|
|
||||||
install -D -m755 ${wrksrc}/support/sysvinit/inittab \
|
install -D -m755 ${wrksrc}/support/sysvinit/inittab \
|
||||||
${DESTDIR}/etc/inittab
|
${DESTDIR}/etc/inittab
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue