Move operating system detection to sxmo_common

Signed-off-by: Stacy Harper <contact@stacyharper.net>
This commit is contained in:
Maxim Karasev 2021-09-04 23:22:39 +03:00 committed by Stacy Harper
parent 2e965453c1
commit f7698e4a25
No known key found for this signature in database
GPG key ID: 5BAC92328B7C5D65
2 changed files with 10 additions and 8 deletions

View file

@ -10,14 +10,6 @@
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"
if [ -f /etc/os-release ]; then
# freedesktop.org and systemd
. /etc/os-release
OS=$NAME
else
OS="Unknown"
fi
daemon_start() {
case "$OS" in
"Alpine Linux"|postmarketOS)