.
Some checks failed
Test / test (push) Has been cancelled

This commit is contained in:
2026-01-17 14:56:31 +00:00
parent b9b3f89910
commit 17253479a6
10 changed files with 1113 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
#!/usr/bin/env bash
set -euo pipefail
# Installs a systemd *user* service to run Cisco VPN auto-connect in the logged-in GUI session.
# Intended to be executed inside the VM as the desktop user (not root).
#
# Usage:
# ./install-cisco-vpn-user-service.sh
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
UNIT_SRC="$SCRIPT_DIR/cisco-vpn-connect.service.user"
UNIT_NAME="cisco-vpn-connect.service"
if [[ ! -f "$UNIT_SRC" ]]; then
echo "Missing $UNIT_SRC" >&2
exit 1
fi
mkdir -p "$HOME/.config/systemd/user"
install -m 0644 "$UNIT_SRC" "$HOME/.config/systemd/user/$UNIT_NAME"
systemctl --user daemon-reload
systemctl --user enable --now "$UNIT_NAME"
systemctl --user --no-pager --full status "$UNIT_NAME" || true