mirror of
https://github.com/okunze/Argon40-ArgonOne-Script.git
synced 2025-06-29 08:17:32 +02:00
Automated Change by GitHub Action
This commit is contained in:
committed by
github-actions[bot]
parent
9b506fd5f0
commit
377d676348
@ -6,8 +6,11 @@ argoneonrtcscript=/etc/argon/argoneond.py
|
||||
argonirconfigscript=/etc/argon/argonone-ir
|
||||
|
||||
if [ ! -z "$1" ]
|
||||
then
|
||||
if [ -f "$argononefanscript" ]
|
||||
then
|
||||
$pythonbin $argononefanscript FANOFF
|
||||
fi
|
||||
if [ "$1" = "poweroff" ] || [ "$1" = "halt" ]
|
||||
then
|
||||
if [ -f $argonirconfigscript ]
|
||||
|
@ -41,7 +41,10 @@ if [ -f "$shortcutfile" ]; then
|
||||
sudo rm /usr/share/pixmaps/argoneon.png
|
||||
fi
|
||||
fi
|
||||
|
||||
shortcutfile="/home/$destfoldername/Desktop/argononeup.desktop"
|
||||
if [ -f "$shortcutfile" ]; then
|
||||
sudo rm $shortcutfile
|
||||
fi
|
||||
|
||||
INSTALLATIONFOLDER=/etc/argon
|
||||
|
||||
@ -58,6 +61,15 @@ if [ -f $argononefanscript ]; then
|
||||
sudo rm /lib/systemd/system/argononed.service
|
||||
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
|
||||
argoneonrtcscript=$INSTALLATIONFOLDER/argoneond.py
|
||||
if [ -f "$argoneonrtcscript" ]
|
||||
@ -78,7 +90,7 @@ fi
|
||||
argononeupsscript=$INSTALLATIONFOLDER/argononeupsd.py
|
||||
if [ -f "$argononeupsscript" ]
|
||||
then
|
||||
sudo rmmod argonbatteryicon
|
||||
#sudo rmmod argonbatteryicon
|
||||
# Disable Services
|
||||
sudo systemctl stop argononeupsd.service
|
||||
sudo systemctl disable argononeupsd.service
|
||||
@ -98,7 +110,10 @@ then
|
||||
done
|
||||
fi
|
||||
|
||||
if [ -f "/usr/bin/argon-config" ]
|
||||
then
|
||||
sudo rm /usr/bin/argon-config
|
||||
fi
|
||||
|
||||
if [ -f "/usr/bin/argonone-config" ]
|
||||
then
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
VERSIONINFO="2505003"
|
||||
VERSIONINFO="2506001"
|
||||
|
||||
echo "Version $VERSIONINFO"
|
||||
if [ -z "$1" ]
|
||||
|
Reference in New Issue
Block a user