Make x86_64 image more similar to Pi image if installer is used. Improve RHVoice fixes so they shouldn't be stale any more.
This commit is contained in:
@@ -28,6 +28,30 @@ install_sas() {
|
||||
return "$installStatus"
|
||||
}
|
||||
|
||||
install_rhvoice_english_fixes() {
|
||||
local rhvoiceRepo="https://git.stormux.org/storm/rhvoice-english"
|
||||
local targetDir="/etc/RHVoice/dicts/English"
|
||||
local tempDir
|
||||
local installStatus=0
|
||||
|
||||
tempDir="$(mktemp -d)"
|
||||
|
||||
echo "Installing latest RHVoice English dictionary fixes..."
|
||||
if ! git clone --depth 1 "$rhvoiceRepo" "$tempDir"; then
|
||||
rm -rf "$tempDir"
|
||||
return 1
|
||||
fi
|
||||
|
||||
mkdir -p "$targetDir"
|
||||
rm -f "$targetDir/namefix.txt" "$targetDir/wordfix.txt"
|
||||
if ! cp -a "$tempDir/English/." "$targetDir/"; then
|
||||
installStatus=1
|
||||
fi
|
||||
|
||||
rm -rf "$tempDir"
|
||||
return "$installStatus"
|
||||
}
|
||||
|
||||
# Initialize pacman keyring
|
||||
echo "Initializing pacman keyring..."
|
||||
pacman-key --init
|
||||
@@ -49,6 +73,7 @@ echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
|
||||
locale-gen
|
||||
|
||||
install_sas
|
||||
install_rhvoice_english_fixes
|
||||
|
||||
# Enable system services
|
||||
systemctl enable NetworkManager.service
|
||||
|
||||
Reference in New Issue
Block a user