Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
NEMS Linux
committed
Feb 19, 2019
1 parent
17aad5a
commit 1f6305d
Showing
2 changed files
with
7 additions
and
1 deletion.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,9 +1,16 @@ | ||
#!/bin/bash | ||
|
||
## Remove Cockpit theme and replace with symlink to the NEMS theme | ||
platform=$(/usr/local/bin/nems-info platform) | ||
if [[ $platform = "0" ]] || | ||
[[ $platform = "1" ]]; then | ||
echo "Incompatible SBC. Leaving Cockpit off." | ||
else | ||
|
||
if [[ -d /usr/share/cockpit/branding/debian/ ]]; then | ||
rm -rf /usr/share/cockpit/branding/debian | ||
fi | ||
mkdir -p /usr/share/cockpit/branding/debian | ||
cp -f /root/nems/nems-migrator/data/1.4/cockpit/branding/* /usr/share/cockpit/branding/debian/ | ||
|
||
fi |