Automated Change by GitHub Action

This commit is contained in:
okunze
2025-06-27 21:08:43 +00:00
committed by github-actions[bot]
parent 9b506fd5f0
commit 377d676348
3 changed files with 26 additions and 8 deletions

View File

@ -7,7 +7,10 @@ argonirconfigscript=/etc/argon/argonone-ir
if [ ! -z "$1" ] if [ ! -z "$1" ]
then then
$pythonbin $argononefanscript FANOFF if [ -f "$argononefanscript" ]
then
$pythonbin $argononefanscript FANOFF
fi
if [ "$1" = "poweroff" ] || [ "$1" = "halt" ] if [ "$1" = "poweroff" ] || [ "$1" = "halt" ]
then then
if [ -f $argonirconfigscript ] if [ -f $argonirconfigscript ]

View File

@ -41,7 +41,10 @@ if [ -f "$shortcutfile" ]; then
sudo rm /usr/share/pixmaps/argoneon.png sudo rm /usr/share/pixmaps/argoneon.png
fi fi
fi fi
shortcutfile="/home/$destfoldername/Desktop/argononeup.desktop"
if [ -f "$shortcutfile" ]; then
sudo rm $shortcutfile
fi
INSTALLATIONFOLDER=/etc/argon INSTALLATIONFOLDER=/etc/argon
@ -58,6 +61,15 @@ if [ -f $argononefanscript ]; then
sudo rm /lib/systemd/system/argononed.service sudo rm /lib/systemd/system/argononed.service
fi fi
argononeupscript=$INSTALLATIONFOLDER/argononeupd.py
if [ -f $argononeupscript ]; then
sudo systemctl stop argononeupd.service
sudo systemctl disable argononeupd.service
# Remove files
sudo rm /lib/systemd/system/argononeupd.service
fi
# Remove RTC if any # Remove RTC if any
argoneonrtcscript=$INSTALLATIONFOLDER/argoneond.py argoneonrtcscript=$INSTALLATIONFOLDER/argoneond.py
if [ -f "$argoneonrtcscript" ] if [ -f "$argoneonrtcscript" ]
@ -78,7 +90,7 @@ fi
argononeupsscript=$INSTALLATIONFOLDER/argononeupsd.py argononeupsscript=$INSTALLATIONFOLDER/argononeupsd.py
if [ -f "$argononeupsscript" ] if [ -f "$argononeupsscript" ]
then then
sudo rmmod argonbatteryicon #sudo rmmod argonbatteryicon
# Disable Services # Disable Services
sudo systemctl stop argononeupsd.service sudo systemctl stop argononeupsd.service
sudo systemctl disable argononeupsd.service sudo systemctl disable argononeupsd.service
@ -98,18 +110,21 @@ then
done done
fi fi
sudo rm /usr/bin/argon-config if [ -f "/usr/bin/argon-config" ]
then
sudo rm /usr/bin/argon-config
fi
if [ -f "/usr/bin/argonone-config" ] if [ -f "/usr/bin/argonone-config" ]
then then
sudo rm /usr/bin/argonone-config sudo rm /usr/bin/argonone-config
sudo rm /usr/bin/argonone-uninstall sudo rm /usr/bin/argonone-uninstall
fi fi
if [ -f "/usr/bin/argonone-ir" ] if [ -f "/usr/bin/argonone-ir" ]
then then
sudo rm /usr/bin/argonone-ir sudo rm /usr/bin/argonone-ir
fi fi
# Delete config files # Delete config files

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSIONINFO="2505003" VERSIONINFO="2506001"
echo "Version $VERSIONINFO" echo "Version $VERSIONINFO"
if [ -z "$1" ] if [ -z "$1" ]