forked from mainsail-crew/MainsailOS
-
-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: added mainsailos module This module provides a mainsailos-release file according to: mainsail-crew/mainsail@cb87b4c Signed-off-by: Stephan Wendel <me@stephanwe.de> * style: added trailing new line Signed-off-by: Stephan Wendel <me@stephanwe.de>
- Loading branch information
1 parent
2f3c7ae
commit 0d35bb0
Showing
2 changed files
with
25 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# This file is intentionally left blank | ||
# Preparation for later use cases |
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,23 @@ | ||
#!/usr/bin/env bash | ||
# MainsailOS Specific Tweaks | ||
# written by Stephan Wendel aka KwadFan | ||
# <me@stephanwe.de> | ||
# GPL V3 | ||
######## | ||
|
||
|
||
# Source error handling, leave this in place | ||
set -xe | ||
|
||
# Source CustomPIOS common.sh | ||
source /common.sh | ||
install_cleanup_trap | ||
|
||
# Create mainsailos release file | ||
if [ -f "/etc/mainsailos_version" ]; then | ||
sudo rm -f /etc/mainsailos_version | ||
fi | ||
function get_parent { | ||
cat /etc/os-release | grep VERSION_CODENAME | cut -d '=' -f2 | ||
} | ||
echo "${DIST_NAME} release ${DIST_VERSION} ($(get_parent))" > /etc/${DIST_NAME,,}-release |