system-config/setup.sh

27 lines
486 B
Bash
Raw Normal View History

2023-10-17 20:56:47 +02:00
#!/bin/sh
set -e
cd "$(dirname "$0")"
if [ "$USER" != root ]; then
echo "Needs to be run as root" >&2
exit 1
fi
if [ -f /etc/qubes-release ]; then
sh setup-qubes.sh
exit
fi
if [ ! -f /etc/fedora-release ]; then
exit
fi
sh setup-common.sh
if [ -f /usr/share/qubes/marker-vm ]; then
sh setup-qubes-fedora.sh
elif [ -d /usr/lib/coreos ]; then
if systemd-detect-virt; then
sh setup-vps.sh
else
2023-11-24 21:38:29 +01:00
sh setup-home.sh
2023-10-17 20:56:47 +02:00
fi
elif [ -d /ostree ]; then
sh setup-laptop.sh
fi