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
1a7ab2e005
commit
755a2ca262
22
source/scripts/argon-shutdown.sh
Normal file
22
source/scripts/argon-shutdown.sh
Normal file
@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
pythonbin=/usr/bin/python3
|
||||
argononefanscript=/etc/argon/argononed.py
|
||||
argoneonrtcscript=/etc/argon/argoneond.py
|
||||
argonirconfigscript=/etc/argon/argonone-ir
|
||||
|
||||
if [ ! -z "$1" ]
|
||||
then
|
||||
$pythonbin $argononefanscript FANOFF
|
||||
if [ "$1" = "poweroff" ] || [ "$1" = "halt" ]
|
||||
then
|
||||
if [ -f $argonirconfigscript ]
|
||||
then
|
||||
if [ -f $argoneonrtcscript ]
|
||||
then
|
||||
$pythonbin $argoneonrtcscript SHUTDOWN
|
||||
fi
|
||||
$pythonbin $argononefanscript SHUTDOWN
|
||||
fi
|
||||
fi
|
||||
fi
|
Reference in New Issue
Block a user