-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaserdev-postinstall.sh
More file actions
64 lines (52 loc) · 2.06 KB
/
aserdev-postinstall.sh
File metadata and controls
64 lines (52 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/env bash
set -euo pipefail
echo "🔥 aserdev-os Postinstall Script Starting..."
# Ensure dependencies
if ! command -v curl &>/dev/null; then
echo "📦 Installing curl..."
pacman -Sy --noconfirm curl || (echo "💀 Failed to install curl" && exit 1)
fi
# Install full PipeWire + NetworkManager stack
echo "📦 Installing PipeWire + NetworkManager..."
pacman -Sy --noconfirm \
pipewire \
pipewire-pulse \
pipewire-alsa \
pipewire-jack \
wireplumber \
networkmanager \
network-manager-applet \
dialog \
sddm \
wpa_supplicant || { echo "💀 Failed installing audio/network stuff"; exit 1; }
# Enable + start systemd services
echo "⚡ Enabling PipeWire and NetworkManager services..."
systemctl enable --now NetworkManager || { echo "💀 Failed to enable/start services"; exit 1; }
echo "✅ Services enabled and running"
# Fetch and execute GRUB setup
echo "⚙️ Running GRUB setup..."
curl -fsSL https://raw.githubusercontent.com/aserdevyt/aserdev-os/refs/heads/main/grub.sh -o /root/grub.sh
chmod +x /root/grub.sh
bash /root/grub.sh || { echo "💀 grub.sh failed!"; exit 1; }
echo "💀 grub.sh executed successfully"
# Replace os-release
echo "🧾 Replacing os-release..."
curl -fsSL https://raw.githubusercontent.com/aserdevyt/aserdev-os/refs/heads/main/os-release -o /etc/os-release
echo "✅ os-release replaced"
curl -fsSL https://raw.githubusercontent.com/aserdevyt/aserdev-repo/refs/heads/main/install.sh -o /root/install-repo.sh
chmod +x /root/install-repo.sh
bash /root/install-repo.sh || { echo "💀 grub.sh failed!"; exit 1; }
# Copy /etc/skel to all users
echo "📂 Copying /etc/skel to all user home directories..."
for userhome in /home/*; do
if [ -d "$userhome" ]; then
cp -rT /etc/skel "$userhome"
chown -R "$(basename "$userhome")":"$(basename "$userhome")" "$userhome"
echo "✅ Updated: $userhome"
fi
done
# Also update /root
cp -rT /etc/skel /root
echo "✅ /root updated from /etc/skel"
echo "🎉 All done! System ready to boot into chaos mode. 🚀"
systemctl enable sddm