Remove: ddstatus.sh: dd status=progress does the same
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -7,5 +7,4 @@
|
||||
- auto-ping.sh - Notifies you when there is internet connection
|
||||
- autolsblk.sh - lsblk that auto refreshes because of laziness
|
||||
- bashpass.sh - Generates random sha256sum passwords
|
||||
- ddstatus.sh - Shows you the current status of a dd process
|
||||
- TODO
|
||||
|
||||
-26
@@ -1,26 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
PID=$(pidof dd)
|
||||
|
||||
|
||||
main(){
|
||||
|
||||
if [ -z "${PID}" ];then
|
||||
echo "DD is not running"
|
||||
exit 0;
|
||||
fi
|
||||
|
||||
while true;do
|
||||
clear
|
||||
PID=$(pidof dd)
|
||||
if [ -z "${PID}" ];then
|
||||
echo "dd is no longer running"
|
||||
exit 0;
|
||||
fi
|
||||
kill -USR1 ${PID} > /dev/null 2>&1
|
||||
sleep 1
|
||||
done
|
||||
}
|
||||
|
||||
main
|
||||
Reference in New Issue
Block a user