Compare commits

..

No commits in common. "f837ecbeb42224d51bcaae072696801044d3eb8e" and "797037c2d94f1391fff4a23833dae4cd8beedd94" have entirely different histories.

2 changed files with 0 additions and 22 deletions

View File

@ -190,14 +190,6 @@ package() {
"$pkgdir/etc/systemd/user/graphical-session.target.wants/$(basename "$svc")" "$pkgdir/etc/systemd/user/graphical-session.target.wants/$(basename "$svc")"
done done
# --- udev rules -> /usr/lib/udev/rules.d/ ---
install -Dm644 defaults/etc/udev/rules.d/90-moonarch-battery.rules \
"$pkgdir/usr/lib/udev/rules.d/90-moonarch-battery.rules"
# --- Systemd system service (battery conservation restore) -> /usr/lib/systemd/system/ ---
install -Dm644 defaults/etc/systemd/system/moonarch-batsaver.service \
"$pkgdir/usr/lib/systemd/system/moonarch-batsaver.service"
} }
backup=( backup=(

View File

@ -71,25 +71,11 @@ post_install() {
rm -f /usr/local/bin/swww /usr/local/bin/swww-daemon 2>/dev/null || true rm -f /usr/local/bin/swww /usr/local/bin/swww-daemon 2>/dev/null || true
rm -f /usr/local/bin/moonarch-update 2>/dev/null || true rm -f /usr/local/bin/moonarch-update 2>/dev/null || true
# Battery conservation mode: create state directory and enable restore service
install -dm775 -g wheel /var/lib/moonarch
if [ -f /sys/class/power_supply/BAT0/charge_control_end_threshold ]; then
systemctl enable moonarch-batsaver.service 2>/dev/null || true
fi
echo "==> Moonarch defaults installed." echo "==> Moonarch defaults installed."
echo "==> For first-time setup run: /opt/moonarch/scripts/post-install.sh" echo "==> For first-time setup run: /opt/moonarch/scripts/post-install.sh"
echo "==> This enables services and configures firewall." echo "==> This enables services and configures firewall."
} }
pre_upgrade() {
# Remove untracked walker theme files from pre-package manual deploys.
# Without this, pacman refuses to overwrite files it doesn't own.
if [ -d /etc/xdg/walker/themes/moonarch ] && ! pacman -Qo /etc/xdg/walker/themes/moonarch/style.css &>/dev/null; then
rm -rf /etc/xdg/walker/themes/moonarch
fi
}
post_upgrade() { post_upgrade() {
post_install post_install
} }