mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-29 05:04:50 +00:00
Fix ``MAKEDEV acd''
Spotted by: Mark Knight <mkn@FreeBSD.org.uk>
This commit is contained in:
parent
dea6f3fbb6
commit
ae409c2b97
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=52259
|
@ -724,7 +724,7 @@ acd*|cd*|mcd*|scd*)
|
|||
mcd*) units=`expr $i : '...\(.*\)'`; name=mcd; blk=7; chr=29;;
|
||||
scd*) units=`expr $i : '...\(.*\)'`; name=scd; blk=16; chr=45;;
|
||||
esac
|
||||
if [ -z "${units}" -o ${units} -le 0 ]; then
|
||||
if [ -z "${units}" -o "${units}" -le 0 ]; then
|
||||
units=1
|
||||
fi
|
||||
if [ "${units}" -le 31 ]; then
|
||||
|
|
|
@ -694,7 +694,7 @@ acd*|cd*|mcd*|scd*)
|
|||
mcd*) units=`expr $i : '...\(.*\)'`; name=mcd; blk=7; chr=29;;
|
||||
scd*) units=`expr $i : '...\(.*\)'`; name=scd; blk=16; chr=45;;
|
||||
esac
|
||||
if [ -z "${units}" -o ${units} -le 0 ]; then
|
||||
if [ -z "${units}" -o "${units}" -le 0 ]; then
|
||||
units=1
|
||||
fi
|
||||
if [ "${units}" -le 31 ]; then
|
||||
|
|
|
@ -724,7 +724,7 @@ acd*|cd*|mcd*|scd*)
|
|||
mcd*) units=`expr $i : '...\(.*\)'`; name=mcd; blk=7; chr=29;;
|
||||
scd*) units=`expr $i : '...\(.*\)'`; name=scd; blk=16; chr=45;;
|
||||
esac
|
||||
if [ -z "${units}" -o ${units} -le 0 ]; then
|
||||
if [ -z "${units}" -o "${units}" -le 0 ]; then
|
||||
units=1
|
||||
fi
|
||||
if [ "${units}" -le 31 ]; then
|
||||
|
|
Loading…
Reference in a new issue