mirror of
https://github.com/wnlen/clash-for-linux.git
synced 2026-03-21 22:06:45 +08:00
script
This commit is contained in:
@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
PROJECT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
|
||||
# shellcheck disable=SC1091
|
||||
source "$PROJECT_DIR/scripts/service_lib.sh"
|
||||
|
||||
mode="$(detect_mode)"
|
||||
|
||||
echo "=== Clash Status ==="
|
||||
echo "Project : $PROJECT_DIR"
|
||||
echo "Mode : $mode"
|
||||
|
||||
case "$mode" in
|
||||
systemd)
|
||||
echo "Running : yes (systemd)"
|
||||
;;
|
||||
script)
|
||||
echo "Running : yes (script)"
|
||||
;;
|
||||
systemd-installed)
|
||||
echo "Running : no (installed but not started)"
|
||||
;;
|
||||
*)
|
||||
echo "Running : no"
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user