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
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Anton Palgunov
mkimage-profiles
Commits
b786a82c
You need to sign in or sign up before continuing.
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
50-l10n-sysconfig
features.in/l10n/rootfs/image-scripts.d/50-l10n-sysconfig
+12
-13
No files found.
features.in/l10n/rootfs/image-scripts.d/50-l10n-sysconfig
View file @
b786a82c
...
...
@@ -7,19 +7,18 @@ locale="$GLOBAL_LOCALE"
systemd_locale
=
/etc/locale.conf
sysv_locale
=
/etc/sysconfig/i18n
[
-f
"
$langlist
"
]
||
exit
0
[
-n
"
$locales
"
]
||
exit
0
if
[
-f
"
$langlist
"
]
&&
[
-n
"
$locales
"
]
;
then
rm
-f
"
$langlist_temp
"
rm
-f
"
$langlist_temp
"
for
lang
in
$locales
;
do
grep
-q
"
$lang
"
"
$langlist
"
&&
grep
"
$lang
"
"
$langlist
"
>>
"
$langlist_temp
"
done
for
lang
in
$locales
;
do
grep
-q
"
$lang
"
"
$langlist
"
&&
grep
"
$lang
"
"
$langlist
"
>>
"
$langlist_temp
"
done
mv
"
$langlist_temp
"
"
$langlist
"
fi
mv
"
$langlist_temp
"
"
$langlist
"
[
-n
"
$locale
"
]
||
exit
0
echo
LANG
=
"
$locale
"
.UTF8
>
"
$systemd_locale
"
echo
LANG
=
"
$locale
"
.UTF8
>
"
$sysv_locale
"
echo
SUPPORTED
=
"
$locale
"
.UTF8
>>
"
$sysv_locale
"
if
[
-n
"
$locale
"
]
;
then
echo
LANG
=
"
$locale
"
.UTF8
>
"
$systemd_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