Skip to content

Commit

Permalink
Update emergency.sh
Browse files Browse the repository at this point in the history
Initial
  • Loading branch information
MrDoobPG committed Nov 20, 2019
1 parent 67bd2d6 commit 2948866
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions menu/functions/emergency.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
#!/bin/bash
#
# Title: PTS Emergency Log Gen
# org.Author(s): Admin9705
# Mod: MrDoob MainDev from PTS
# GNU: General Public License v3.0
################################################################################
source /opt/plexguide/menu/functions/functions.sh


abc="/var/plexguide"
mkdir -p /opt/appdata/plexguide/emergency
variable ${abc}/emergency.display "On"
if [[ $(ls /opt/appdata/plexguide/emergency) != "" ]]; then
Expand All @@ -6,10 +17,12 @@
if [[ $(cat /var/plexguide/emergency.display) == "On" ]]; then

tee <<-EOF
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⛔️ Emergency & Warning Log Generator
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
NOTE: This can be turned [On] or Off in Settings!
EOF

countmessage=0
Expand Down

0 comments on commit 2948866

Please sign in to comment.