forked from mirrored-repos/manjaro-tools
[util-iso-calamares] only write barnding if file exists
This commit is contained in:
parent
aa9bc91f5e
commit
6a8518dc0f
1 changed files with 24 additions and 22 deletions
|
@ -11,28 +11,30 @@
|
||||||
|
|
||||||
write_calamares_branding_desc(){
|
write_calamares_branding_desc(){
|
||||||
local conf="$1/usr/share/calamares/branding/sonar/branding.desc"
|
local conf="$1/usr/share/calamares/branding/sonar/branding.desc"
|
||||||
echo '---' > "$conf"
|
if [[ -f "$conf" ]];then
|
||||||
echo "componentName: sonar" >> $conf
|
echo '---' > "$conf"
|
||||||
echo '' >> $conf
|
echo "componentName: sonar" >> "$conf"
|
||||||
echo 'strings:' >> $conf
|
echo '' >> $conf
|
||||||
echo " productName: ${dist_name} GNU Linux" >> $conf
|
echo 'strings:' >> $conf
|
||||||
echo " shortProductName: ${dist_name}" >> $conf
|
echo " productName: ${dist_name} GNU Linux" >> "$conf"
|
||||||
echo " version: ${dist_release}" >> $conf
|
echo " shortProductName: ${dist_name}" >> "$conf"
|
||||||
echo " shortVersion: ${dist_release}" >> $conf
|
echo " version: ${dist_release}" >> "$conf"
|
||||||
echo " versionedName: ${dist_name} GNU Linux ${dist_release}" >> $conf
|
echo " shortVersion: ${dist_release}" >> "$conf"
|
||||||
echo " shortVersionedName: ${dist_name} Linux ${dist_release}" >> $conf
|
echo " versionedName: ${dist_name} GNU Linux ${dist_release}" >> "$conf"
|
||||||
echo " bootloaderEntryName: ${dist_name}" >> $conf
|
echo " shortVersionedName: ${dist_name} Linux ${dist_release}" >> "$conf"
|
||||||
echo '' >> $conf
|
echo " bootloaderEntryName: ${dist_name}" >> "$conf"
|
||||||
echo 'images:' >> $conf
|
echo '' >> $conf
|
||||||
echo ' productLogo: "squid.png"' >> $conf
|
echo 'images:' >> $conf
|
||||||
echo ' productIcon: "logo.png"' >> $conf
|
echo ' productLogo: "squid.png"' >> "$conf"
|
||||||
echo ' productWelcome: "languages.png"' >> $conf
|
echo ' productIcon: "logo.png"' >> "$conf"
|
||||||
echo '' >> $conf
|
echo ' productWelcome: "languages.png"' >> "$conf"
|
||||||
echo 'slideshow: "show.qml"' >> $conf
|
echo '' >> $conf
|
||||||
echo 'style:' >> $conf
|
echo 'slideshow: "show.qml"' >> "$conf"
|
||||||
echo ' sidebarBackground: "#292F34"' >> $conf
|
echo 'style:' >> $conf
|
||||||
echo ' sidebarText: "#FFFFFF"' >> $conf
|
echo ' sidebarBackground: "#292F34"' >> "$conf"
|
||||||
echo ' sidebarTextSelect: "#292F34"' >> $conf
|
echo ' sidebarText: "#FFFFFF"' >> "$conf"
|
||||||
|
echo ' sidebarTextSelect: "#292F34"' >> "$conf"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
write_calamares_machineid_conf(){
|
write_calamares_machineid_conf(){
|
||||||
|
|
Loading…
Reference in a new issue