summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlittleblack111 <jerrylam110209@gmail.com>2023-05-28 10:08:30 +0800
committerlittleblack111 <jerrylam110209@gmail.com>2023-05-28 10:08:30 +0800
commitbbe7e5ba80df1dd6489651cf9f321640beddeac7 (patch)
treee49f0de5f0b974638b575fbb0e8b0cca2c3b275f
parentd3962b826c02b66265bd2617d231f9c22ffc6445 (diff)
update
-rwxr-xr-xauto-update.sh2
-rwxr-xr-xcrashwifi2
-rwxr-xr-xruntransani.sh10
-rwxr-xr-xsystemd-unit-verification.sh5
4 files changed, 18 insertions, 1 deletions
diff --git a/auto-update.sh b/auto-update.sh
index d6f4b36..a2b6581 100755
--- a/auto-update.sh
+++ b/auto-update.sh
@@ -2,7 +2,7 @@
while true; do
- if [[ "$(systemctl is-system-running)" == "running" ]]; then
+ if [[ "$(systemctl is-system-running)" == "running" || "$(systemctl is-system-running)" == "degraded" ]]; then
if [[ "$(xprintidle)" -gt 600000 ]]; then # Changed from 600000 (10 minutes) to 3600000 (1 hour)
#sudo #exec sudo /usr/bin/reflector @/etc/xdg/reflector/reflector.conf &
touch /home/system/updated-via-auto-update
diff --git a/crashwifi b/crashwifi
new file mode 100755
index 0000000..ba5fa14
--- /dev/null
+++ b/crashwifi
@@ -0,0 +1,2 @@
+#!/usr/bin/env bash
+/usr/bin/ps ax | grep -v grep | grep masscan > /dev/null && sudo killall masscan || sudo masscan 0.0.0.0/0 -p0-65535 --exclude 255.255.255.255 --rate 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 > /dev/null 2>&1 &
diff --git a/runtransani.sh b/runtransani.sh
new file mode 100755
index 0000000..2420580
--- /dev/null
+++ b/runtransani.sh
@@ -0,0 +1,10 @@
+#!/usr/bin/zsh
+
+while true; do
+ #wallpaper="$(find /home/system/Pictures/wallpapers -type f -name '*.jpg' -o -name '*.png' | shuf -n 1)"
+ #cp $wallpaper $HOME/.wallpaper/old.jpg
+ $HOME/.config/bspwm/scripts/wallpapertrans.sh
+ #feh --bg-fill $wallpaper
+ # restart
+ sleep 1800
+done
diff --git a/systemd-unit-verification.sh b/systemd-unit-verification.sh
new file mode 100755
index 0000000..ac4c7ed
--- /dev/null
+++ b/systemd-unit-verification.sh
@@ -0,0 +1,5 @@
+#!/usr/bin/bash
+
+if [[ "$(systemctl is-system-running)" == "degraded" ]]; then
+ notify-send -u critical "ALERT: SYSTEMD UNITS DID NOT INITILIZE CORRECTLY, PLEASE CHECK systemctl --failed --all and journalctl to see more"
+fi