check for block device
This commit is contained in:
parent
fe454d8692
commit
91e1969ab2
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user