Compare commits
4 Commits
e0b5bfbdcd
...
6e50da6f8d
Author | SHA1 | Date | |
---|---|---|---|
6e50da6f8d | |||
1ab7a327ca | |||
aee4d3ca16 | |||
d796401648 |
@ -1,7 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
/usr/bin/bash /opt/scripts/update/localip.sh
|
||||
|
||||
docker ps -a --format "table {{.Names}}\t{{.Status}}" > /opt/logs/docker_status.log
|
||||
while read line; do
|
||||
echo $line | grep -q 'Exited'
|
||||
|
@ -1,14 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
calibre='/opt/apps/calibre/calibre-web-0.6.20'
|
||||
# get the pid of calibre, and write it into file /tmp/calibre_pids
|
||||
ps -ef | grep "$calibre/cps.py" | grep -v grep | awk '{print $2}' > /tmp/calibre_pids
|
||||
cd $calibre
|
||||
# get the pid of calibre, and write it into file calibre_pids
|
||||
ps -ef | grep "$calibre/cps.py" | grep -v grep | awk '{print $2}' > calibre_pids
|
||||
|
||||
# if not exist, signifying that there is no calibre process
|
||||
if [[ ! -s /tmp/calibre_pids ]]; then
|
||||
if [[ ! -s calibre_pids ]]; then
|
||||
echo -e "\e[1;31mCannot terminate Calibre process cause there is no such things, will run calibre later automatically.\e[0m"
|
||||
else
|
||||
for calibre_pid in `cat /tmp/calibre_pids`; do
|
||||
for calibre_pid in `cat calibre_pids`; do
|
||||
kill -9 $calibre_pid > /dev/null 2>&1
|
||||
done
|
||||
fi
|
||||
|
@ -1,17 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
sleep 60
|
||||
/usr/bin/qbittorrent-nox --webui-port=10005 -d
|
||||
/usr/bin/bash /opt/scripts/update/calibre.sh
|
||||
|
||||
ip link set enp1s0 promisc on
|
||||
ip link set enp2s0 promisc on
|
||||
ip link set wlx90de80ca01ec promisc on
|
||||
|
||||
/usr/bin/qbittorrent-nox --webui-port=10005 -d
|
||||
/usr/bin/bash /opt/scripts/update/jekyll_update.sh
|
||||
/usr/bin/bash /opt/scripts/update/calibre.sh
|
||||
/usr/bin/bash /opt/scripts/update/localip.sh
|
||||
|
||||
|
||||
|
||||
# /usr/bin/mount -t ext4 -w UUID="b7c2c4b8-bfde-479b-80bb-655432a433b8" /opt/wd
|
||||
|
||||
|
@ -42,6 +42,18 @@ ABORT=9
|
||||
# lack of bluetooth drivers and wireless net card(Intel AX101)drivers -- ibt-0040-1050.sfi
|
||||
# cp ibt-0040-0041.sfi ibt-0040-1050.sfi
|
||||
# cp ibt-0040-0041.ddc ibt-0040-1050.ddc
|
||||
# -------------------------------------------------------------------------------------------------------------
|
||||
# do nothing when closing laptop lid
|
||||
# Firstly, edit file /etc/systemd/logind.conf
|
||||
# HandleLidSwitch=ignore
|
||||
# HandleLidSwitchExternalPower=ignore
|
||||
# HandleLidSwitchDocked=ignore
|
||||
# LidSwitchIgnoreInhibited=yes
|
||||
#
|
||||
# Candidate: suspend/lock/ignore/poweroff/hibernate
|
||||
#
|
||||
# Secondly, reboot the system
|
||||
|
||||
|
||||
# =============================================================================================================
|
||||
# This script must be executed by root privilege
|
||||
|
Reference in New Issue
Block a user