Split Script in Sub Scripts

This commit is contained in:
BlueKenny committed 2026-11-23 11:28:18 +01:00
1 parent 474148bc68
commit c6bac1d6dc
3 files changed
+80 -67

No files matched your search

+2 -67
View File
@@ -1,72 +1,7 @@
#!/usr/bin/bash
#pkg install bash curl
# curl -s https://file.zaunz.org/files/CoreBSD/CoreBSD.sh | bash
# backlight -f backlight0 80
# Install packages
packages=(
nano
bash
firefox
curl
mate
sddm
wget
python3
xorg
rust-script
rust
sudo
zip
unzip
)
for pkg in "${packages[@]}"; do
if ! pkg info -e "$pkg"; then
echo "Installing $pkg..."
pkg install -y "$pkg"
fi
done
bash ./CoreBSD_Packages.sh
# For each USER
for homedir in /home/*; do
[ -d "$homedir" ] || continue
user=$(basename "$homedir")
pw groupmod video -m $user
pw groupmod wheel -m $user
done
if pciconf -vl | grep -q "Kaby Lake-H GT2"; then
echo "Kaby Lake-H GT2 found"
packages=(
gpu-firmware-intel-kmod-kabylake
drm-latest-kmod
)
for pkg in "${packages[@]}"; do
if ! pkg info -e "$pkg"; then
echo "Installing $pkg..."
pkg install -y "$pkg"
fi
done
sysrc kld_list+=i915kms
fi
if pciconf -vl | grep -q "Alder Lake-N"; then
echo "Alder Lake-N found"
packages=(
gpu-firmware-intel-kmod-alderlake
drm-latest-kmod
)
for pkg in "${packages[@]}"; do
if ! pkg info -e "$pkg"; then
echo "Installing $pkg..."
pkg install -y "$pkg"
fi
done
sysrc kld_list+=i915kms
fi
sysrc sddm_enable="YES"
sysrc lang="de_DE.UTF-8"
grep -qxF '%wheel ALL=(ALL:ALL) ALL' /usr/local/etc/sudoers || echo '%wheel ALL=(ALL:ALL) ALL' | sudo tee -a /usr/local/etc/sudoers
bash ./CoreBSD_GraphicDrivers.sh
+38
View File
@@ -0,0 +1,38 @@
#!/usr/bin/bash
# For each USER
for homedir in /home/*; do
[ -d "$homedir" ] || continue
user=$(basename "$homedir")
pw groupmod video -m $user
done
if pciconf -vl | grep -q "Kaby Lake-H GT2"; then
echo "Kaby Lake-H GT2 found"
packages=(
gpu-firmware-intel-kmod-kabylake
drm-latest-kmod
)
for pkg in "${packages[@]}"; do
if ! pkg info -e "$pkg"; then
echo "Installing $pkg..."
pkg install -y "$pkg"
fi
done
sysrc kld_list+=i915kms
fi
if pciconf -vl | grep -q "Alder Lake-N"; then
echo "Alder Lake-N found"
packages=(
gpu-firmware-intel-kmod-alderlake
drm-latest-kmod
)
for pkg in "${packages[@]}"; do
if ! pkg info -e "$pkg"; then
echo "Installing $pkg..."
pkg install -y "$pkg"
fi
done
sysrc kld_list+=i915kms
fi
+40
View File
@@ -0,0 +1,40 @@
#!/usr/bin/bash
echo "CoreBSD Packages"
# Install packages
packages=(
nano
bash
firefox
curl
mate
sddm
wget
python3
xorg
rust-script
rust
sudo
zip
unzip
)
for pkg in "${packages[@]}"; do
if ! pkg info -e "$pkg"; then
echo "Installing $pkg..."
pkg install -y "$pkg"
fi
done
# For each USER
for homedir in /home/*; do
[ -d "$homedir" ] || continue
user=$(basename "$homedir")
pw groupmod wheel -m $user
done
sysrc sddm_enable="YES"
sysrc lang="de_DE.UTF-8"
grep -qxF '%wheel ALL=(ALL:ALL) ALL' /usr/local/etc/sudoers || echo '%wheel ALL=(ALL:ALL) ALL' | sudo tee -a /usr/local/etc/sudoers