From 3ef4798e09ef51fd6e960b1d12e23c752d66c345 Mon Sep 17 00:00:00 2001 From: Donald Zou Date: Tue, 12 Nov 2024 00:12:10 +0800 Subject: [PATCH] Update wgd.sh --- src/wgd.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wgd.sh b/src/wgd.sh index 22e1d25..ac75b63 100755 --- a/src/wgd.sh +++ b/src/wgd.sh @@ -65,6 +65,8 @@ _determineOS(){ OS=$ID elif [ -f /etc/redhat-release ]; then OS="redhat" + elif [ "$(uname)" = "OpenBSD" ]; then + OS="openbsd" else printf "[WGDashboard] %s Sorry, your OS is not supported. Currently the install script only support Debian-based, Red Hat-based OS. With experimental support for Alpine Linux.\n" "$heavy_crossmark" printf "%s\n" "$helpMsg" @@ -491,6 +493,8 @@ else else start_wgd_debug fi + elif [ "$1" = "os" ]; then + _determineOS else help fi