Files
svr/usr/bin/write-unprotect
T
2026-01-23 08:55:18 +01:00

14 lines
145 B
Bash
Executable File

#!/usr/bin/bash
if [ "$#" -ne 1 ] ; then
echo "Usage: $0 /dev/sdb"
echo "run:"
echo 'hdparm -r0 $1'
exit 1
fi
hdparm -r0 $1
exit 0