diff options
-rwxr-xr-x | backup_2pac | 2 | ||||
-rw-r--r-- | backup_2pac.exclude (renamed from backup-2pac.exclude) | 0 | ||||
-rwxr-xr-x | chromium | 2 | ||||
-rwxr-xr-x | chromium_real_user_agent | 2 | ||||
-rwxr-xr-x | dd_benchmark (renamed from dd_bench) | 0 | ||||
-rwxr-xr-x | mdstat | 6 |
6 files changed, 9 insertions, 3 deletions
diff --git a/backup_2pac b/backup_2pac index 43748fb..b57abe9 100755 --- a/backup_2pac +++ b/backup_2pac @@ -4,6 +4,6 @@ check_root logger RSYNC BACKUP START -rsync -avv --delete --exclude-from /home/pks/bin/backup-2pac.exclude / /workspace/.b &>/var/log/backup.log +rsync -avv --delete --exclude-from /home/pks/bin/backup_2pac.exclude / /workspace/.b &>/var/log/backup.log logger RSYNC BACKUP END diff --git a/backup-2pac.exclude b/backup_2pac.exclude index 571287a..571287a 100644 --- a/backup-2pac.exclude +++ b/backup_2pac.exclude @@ -1,4 +1,4 @@ #!/bin/zsh -/usr/bin/chromium-browser --no-referrers --user-agent="\"$(shuf -n 1 /home/pks/bin/user-agents)\"" ${1+"$@"} 2>/dev/null & +/usr/bin/chromium-browser --no-referrers --user-agent="\"$(shuf -n 1 /home/pks/bin/user-agents)\"" ${1+"$@"} 2>/dev/null diff --git a/chromium_real_user_agent b/chromium_real_user_agent index 3d93034..39b8db7 100755 --- a/chromium_real_user_agent +++ b/chromium_real_user_agent @@ -1,4 +1,4 @@ #!/bin/zsh -/usr/bin/chromium-browser --no-referrers ${1+"$@"} 2>/dev/null & +/usr/bin/chromium-browser --no-referrers ${1+"$@"} 2>/dev/null @@ -0,0 +1,6 @@ +#!/bin/zsh + +S=$(awk '/^md/ {printf "%s: ", $1}; /blocks/ {print $NF}' </proc/mdstat) +STATUS=$(echo $S | cut -d" " -f2) +if [[ $STATUS != "[UUUU]" ]]; then logger "[mdstat warning] $S"; fi + |