Исправлен LANG для вызова calculate из init.d

master3.3
Mike Khiretskiy 10 years ago
parent f7964dafcb
commit b9bfb81d00

@ -101,7 +101,7 @@ create_nonroot_user() {
# name of non root user
local nonroot_user="guest"
ebegin "Creating ${nonroot_user} user"
useradd -p "${nonroot_pw}" \
LANG=C useradd -p "${nonroot_pw}" \
--groups users,wheel,audio,cdrom,video,cdrw,usb,plugdev,games,lp,scanner,uucp \
${nonroot_user}
eend $?
@ -112,16 +112,19 @@ create_nonroot_user() {
configure_users() {
if which cl-desktop &>/dev/null
then
cl-desktop root
LANG=C cl-desktop root
fi
}
# setup alsautils astate
setup_alsautils() {
local alsastatedir=/var/lib/alsa
if type alsactl &>/dev/null
then
local alsastatedir=/var/lib/alsa
mkdir -p "${alsastatedir}"
alsactl -f "${alsastatedir}/asound.state" store
mkdir -p "${alsastatedir}"
LANG=C alsactl -f "${alsastatedir}/asound.state" store
fi
}
start() {
@ -132,7 +135,7 @@ start() {
LANG=C /usr/sbin/cl-core --method setup_system --no-progress --usenew-conf --live on
LANG=C configure_users
/usr/sbin/env-update
LANG=C /usr/sbin/env-update
source /etc/profile
# reinit net.* services

Loading…
Cancel
Save