mirror of https://gitlab.com/hp3icc/emq-TE1.git
new rebooters.sh
This commit is contained in:
parent
3cf054aaa0
commit
3f7513a9b8
|
|
@ -1,12 +1,12 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
SCRIPT_NAME="rebooter.sh"
|
SCRIPT_NAME="rebooter.sh"
|
||||||
|
#
|
||||||
# Registra el inicio en /opt/curl.txt
|
# Registra el inicio en /opt/curl.txt
|
||||||
echo "Inicio: $SCRIPT_NAME" >> /opt/curl.txt
|
echo "Inicio: $SCRIPT_NAME" >> /opt/curl.txt
|
||||||
#####################################################################################################################
|
#####################################################################################################################
|
||||||
# rebooter general system
|
# rebooter general system
|
||||||
#####################################################################################################################
|
#####################################################################################################################
|
||||||
|
#
|
||||||
sudo cat > /usr/local/bin/rebooter1.sh <<- "EOF"
|
sudo cat > /usr/local/bin/rebooter1.sh <<- "EOF"
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
@ -67,7 +67,7 @@ EOF
|
||||||
#####################################################################################################################
|
#####################################################################################################################
|
||||||
# rebooter 2
|
# rebooter 2
|
||||||
#####################################################################################################################
|
#####################################################################################################################
|
||||||
|
#
|
||||||
sudo cat > /usr/local/bin/rebooter2.sh <<- "EOF"
|
sudo cat > /usr/local/bin/rebooter2.sh <<- "EOF"
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
sleep 300
|
sleep 300
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue