check for block device
This commit is contained in:
1 parent
fe454d8692
commit
91e1969ab2
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user