Avoid error message when /dev/wedges doesn't exist yet.
This commit is contained in:
parent
cc08080f03
commit
43aac176e6
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: 02-wedgenames,v 1.3 2015/03/01 14:21:17 mlelstv Exp $
|
||||
# $NetBSD: 02-wedgenames,v 1.4 2016/08/15 12:54:40 mlelstv Exp $
|
||||
#
|
||||
# Try to maintain symlinks to wedge devices
|
||||
#
|
||||
|
@ -12,7 +12,7 @@ devices=$@
|
|||
wedgedir=/dev/wedges
|
||||
|
||||
remove_wedge() {
|
||||
find $wedgedir -print \
|
||||
test -d $wedgedir && find $wedgedir -print \
|
||||
| sed -e 's# #\\ #g' \
|
||||
| while read w; do
|
||||
t=$(readlink "$w")
|
||||
|
|
Loading…
Reference in New Issue