check for block device

This commit is contained in:
illiliti 2020-05-22 23:20:01 +03:00
parent fe454d8692
commit 91e1969ab2

View File

@ -17,7 +17,7 @@ create_symlink()
# int main()
{
[ "${dev_name=${DEVPATH##*/}}" ] || exit 1
[ -b "/dev/${dev_name=${DEVPATH##*/}}" ] || exit 1
exec > /dev/null 2>&1