#!/bin/bash

# Source common reset functions
source /etc/stellarmate/reset-factory-common.sh

# Perform common reset operations with stellarmate hostname
perform_common_reset "stellarmate"

cp /etc/stellarmate/kstars/config/* /home/stellarmate/.config
cp /etc/stellarmate/kstars/catalogs/* /home/stellarmate/.local/share/kstars

# SM-120 specific operations
apt-get -y purge modemmanager

# Reset Plasma settings
cp -rf /etc/stellarmate/plasma/* /home/stellarmate/.config

echo "Reset complete. StellarMate must be restarted now."
