Initial LanUps implementation and native installers

This commit is contained in:
tongtong committed 2026-11-28 16:26:39 +08:00
commit 67a043c89b
66 files changed
+2870

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
set -eu
[ "${3:-/}" = / ] || { echo 'Install LanUps onto the running macOS system volume.' >&2; exit 1; }
if launchctl print system/local.lanups.agent >/dev/null 2>&1; then launchctl bootout system/local.lanups.agent; fi
user=$(/usr/bin/stat -f '%Su' /dev/console)
case "$user" in root|loginwindow|_mbsetupuser|'') exit 0;; esac
uid=$(id -u "$user")
if launchctl print "gui/$uid/local.lanups.desktop" >/dev/null 2>&1; then launchctl bootout "gui/$uid/local.lanups.desktop"; fi