mirror of
https://github.com/okunze/Argon40-ArgonOne-Script.git
synced 2025-06-29 16:27:31 +02:00
Automated Change by GitHub Action
This commit is contained in:
committed by
github-actions[bot]
parent
9b506fd5f0
commit
377d676348
@ -7,7 +7,10 @@ argonirconfigscript=/etc/argon/argonone-ir
|
|||||||
|
|
||||||
if [ ! -z "$1" ]
|
if [ ! -z "$1" ]
|
||||||
then
|
then
|
||||||
|
if [ -f "$argononefanscript" ]
|
||||||
|
then
|
||||||
$pythonbin $argononefanscript FANOFF
|
$pythonbin $argononefanscript FANOFF
|
||||||
|
fi
|
||||||
if [ "$1" = "poweroff" ] || [ "$1" = "halt" ]
|
if [ "$1" = "poweroff" ] || [ "$1" = "halt" ]
|
||||||
then
|
then
|
||||||
if [ -f $argonirconfigscript ]
|
if [ -f $argonirconfigscript ]
|
||||||
|
@ -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,7 +110,10 @@ 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
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
VERSIONINFO="2505003"
|
VERSIONINFO="2506001"
|
||||||
|
|
||||||
echo "Version $VERSIONINFO"
|
echo "Version $VERSIONINFO"
|
||||||
if [ -z "$1" ]
|
if [ -z "$1" ]
|
||||||
|
Reference in New Issue
Block a user