Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
mkimage-profiles
Commits
b786a82c
Commit
b786a82c
authored
Jul 03, 2023
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l10n: fix setup language without alterator-sysconfig
parent
f166b2f2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
50-l10n-sysconfig
features.in/l10n/rootfs/image-scripts.d/50-l10n-sysconfig
+11
-12
No files found.
features.in/l10n/rootfs/image-scripts.d/50-l10n-sysconfig
View file @
b786a82c
...
@@ -7,19 +7,18 @@ locale="$GLOBAL_LOCALE"
...
@@ -7,19 +7,18 @@ locale="$GLOBAL_LOCALE"
systemd_locale
=
/etc/locale.conf
systemd_locale
=
/etc/locale.conf
sysv_locale
=
/etc/sysconfig/i18n
sysv_locale
=
/etc/sysconfig/i18n
[
-f
"
$langlist
"
]
||
exit
0
if
[
-f
"
$langlist
"
]
&&
[
-n
"
$locales
"
]
;
then
[
-n
"
$locales
"
]
||
exit
0
rm
-f
"
$langlist_temp
"
rm
-f
"
$langlist_temp
"
for
lang
in
$locales
;
do
for
lang
in
$locales
;
do
grep
-q
"
$lang
"
"
$langlist
"
&&
grep
"
$lang
"
"
$langlist
"
>>
"
$langlist_temp
"
grep
-q
"
$lang
"
"
$langlist
"
&&
grep
"
$lang
"
"
$langlist
"
>>
"
$langlist_temp
"
done
done
mv
"
$langlist_temp
"
"
$langlist
"
[
-n
"
$locale
"
]
||
exit
0
mv
"
$langlist_temp
"
"
$langlist
"
fi
echo
LANG
=
"
$locale
"
.UTF8
>
"
$systemd_locale
"
if
[
-n
"
$locale
"
]
;
then
echo
LANG
=
"
$locale
"
.UTF8
>
"
$sysv_locale
"
echo
LANG
=
"
$locale
"
.UTF8
>
"
$systemd_locale
"
echo
SUPPORTED
=
"
$locale
"
.UTF8
>>
"
$sysv_locale
"
echo
LANG
=
"
$locale
"
.UTF8
>
"
$sysv_locale
"
echo
SUPPORTED
=
"
$locale
"
.UTF8
>>
"
$sysv_locale
"
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment