Split Script in Sub Scripts
This commit is contained in:
1 parent
474148bc68
commit
c6bac1d6dc
3 files changed
+80
-67
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user