Skip to content

Commit

Permalink
feat: added mainsailos module (#81)
Browse files Browse the repository at this point in the history
* 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
KwadFan authored and miklschmidt committed Apr 4, 2022
1 parent 2f3c7ae commit 0d35bb0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/mainsailos/config
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
23 changes: 23 additions & 0 deletions src/modules/mainsailos/start_chroot_script
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

0 comments on commit 0d35bb0

Please sign in to comment.