summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbackup_2pac2
-rw-r--r--backup_2pac.exclude (renamed from backup-2pac.exclude)0
-rwxr-xr-xchromium2
-rwxr-xr-xchromium_real_user_agent2
-rwxr-xr-xdd_benchmark (renamed from dd_bench)0
-rwxr-xr-xmdstat6
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
diff --git a/chromium b/chromium
index c0f60ff..4ca38d4 100755
--- a/chromium
+++ b/chromium
@@ -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
diff --git a/dd_bench b/dd_benchmark
index 0db9a46..0db9a46 100755
--- a/dd_bench
+++ b/dd_benchmark
diff --git a/mdstat b/mdstat
new file mode 100755
index 0000000..fc86d3a
--- /dev/null
+++ b/mdstat
@@ -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
+