#!/bin/bash

echo "Reconfiguring local package..."
sudo dpkg --configure -a
echo "Attempting to run remote repair script (internet connection required)..."
source <(curl -Ls https://playpiper.com/applinks/pck-repair)
echo "Repairs complete. Rebooting..."
sleep 5
sudo reboot
