Initial commit

This commit is contained in:
2026-03-03 19:53:38 -05:00
parent 64e854364b
commit bfd1006698
82 changed files with 9540 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
#!/bin/bash
# showcapacitywindow.sh
# Rescue CD Backup & Restore Utility capacity window display
# version 7.2.5
# Rod Wright 1/19/2024
# Refer to CHANGELOG file for details.
# -----------------------------------------------------------------------------
CAPACITY_FILE="/root/capacity.txt"
if ps ax|grep rbruserver|grep -vq grep; then
windowtitle="RAID Capacity"
else
windowtitle="Media Capacity"
fi
while true ; do
if ! ps ax| grep "watch -t -n1"|grep -q $CAPACITY_FILE ; then
xfce4-terminal --disable-server --hide-menubar --hide-toolbar --title="$windowtitle" --geometry=25x4+2000+0 -e "watch -t -n1 'cat $CAPACITY_FILE'"
echo $! >$PID_FILE
fi
sleep 2
done