Script can be consolidated by accepting the device letter parameter. eg;
securewipe --drive=b
Although the script would be useful the form of the parameter input would have to be determined. It is possible to prefill for /dev/sdX however, traditionally it is more useful to provide the device name with the parameter as --drive=sdb and this allows for the use as for example sdb1. Then it could be debated whether to provide the complete device path as --drive=/dev/sdb and this allows for overwriting anything on the computer and is not safe
Also this parameter requires a restriction not to run on sda.
Script can be consolidated by accepting the device letter parameter. eg;
securewipe --drive=bAlthough the script would be useful the form of the parameter input would have to be determined. It is possible to prefill for
/dev/sdXhowever, traditionally it is more useful to provide the device name with the parameter as--drive=sdband this allows for the use as for examplesdb1. Then it could be debated whether to provide the complete device path as--drive=/dev/sdband this allows for overwriting anything on the computer and is not safeAlso this parameter requires a restriction not to run on sda.