forked from ibm-openbmc/openbmc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
meta-ibm: add the change-logo service for IPS and OEM (ibm-openbmc#233)
* meta-ibm: Add the change-logo service for IPS Add change-logo service to detect whether there is a keyword in the VPD, if it exists, the original logo will be replaced with a inspur logo. issues: ibm-openbmc/dev#2895 Signed-off-by: George Liu <[email protected]> * meta-ibm: change-logo fixes Some fixes found in testing this PR Tested: - Verified default path when brand is IBM - Verified IPS logo loaded in GUI when brand is J0 - Verified transparent logo loaded for any other brand Signed-off-by: Andrew Geissler <[email protected]> Co-authored-by: George Liu <[email protected]>
- Loading branch information
Showing
6 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions
13
meta-ibm/recipes-phosphor/webui/webui-vue/change-logo.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[Unit] | ||
Description=Start the change logo script | ||
After=system-vpd.service | ||
Before=bmcweb.service | ||
|
||
[Service] | ||
Restart=no | ||
ExecStart=/usr/share/www/changeLogo.sh | ||
Type=oneshot | ||
RemainAfterExit=yes | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh -e | ||
|
||
model=($(busctl get-property xyz.openbmc_project.Inventory.Manager /xyz/openbmc_project/inventory/system xyz.openbmc_project.Inventory.Decorator.Asset SubModel)) | ||
DIR=/usr/share/www/img | ||
if [ "${model[1]}" = '"S0"' ] || [ "${model[1]}" = '"D0"' ]; then | ||
echo "Using IBM logo" | ||
elif [ "${model[1]}" = '"J0"' ]; then | ||
echo "loading IPS logo" | ||
mount --bind ${DIR}/inspur-login-logo.svg.gz ${DIR}/login-company-logo.svg.gz | ||
mount --bind ${DIR}/inspur-logo-header.svg.gz ${DIR}/logo-header.svg.gz | ||
mount --bind ${DIR}/blankLogo.svg.gz /usr/share/www/bee-2-light.svg.gz | ||
else | ||
echo "loading OEM logo" | ||
mount --bind ${DIR}/blankLogo.svg.gz ${DIR}/login-company-logo.svg.gz | ||
mount --bind ${DIR}/blankLogo.svg.gz ${DIR}/logo-header.svg.gz | ||
mount --bind ${DIR}/blankLogo.svg.gz /usr/share/www/bee-2-light.svg.gz | ||
fi |
1 change: 1 addition & 0 deletions
1
meta-ibm/recipes-phosphor/webui/webui-vue/inspur-login-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions
1
meta-ibm/recipes-phosphor/webui/webui-vue/inspur-logo-header.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters