Fix the last "device exists check"
Looks like my last-minute addition was goofed. Use && not || Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
This commit is contained in:
parent
e639b95237
commit
f7d183588c
1 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ run_hook ()
|
||||||
/bin/modprobe -q isofs >/dev/null 2>&1
|
/bin/modprobe -q isofs >/dev/null 2>&1
|
||||||
msg ":: Scanning cd drives..."
|
msg ":: Scanning cd drives..."
|
||||||
for cdrom in /dev/hd[a-z] /dev/sr[0-9]* /dev/scd[a-z] /dev/sg[0-9]*; do
|
for cdrom in /dev/hd[a-z] /dev/sr[0-9]* /dev/scd[a-z] /dev/sg[0-9]*; do
|
||||||
[ ! -e "${cdrom}" ] || continue
|
[ ! -e "${cdrom}" ] && continue
|
||||||
if mount -r -t iso9660 "${cdrom}" /bootmnt >/dev/null 2>&1; then
|
if mount -r -t iso9660 "${cdrom}" /bootmnt >/dev/null 2>&1; then
|
||||||
if [ -e "/bootmnt/isomounts" ]; then
|
if [ -e "/bootmnt/isomounts" ]; then
|
||||||
found=1
|
found=1
|
||||||
|
@ -77,7 +77,7 @@ run_hook ()
|
||||||
if [ ${found} -eq 0 ]; then
|
if [ ${found} -eq 0 ]; then
|
||||||
msg ":: Scanning usb drives..."
|
msg ":: Scanning usb drives..."
|
||||||
for usb in /dev/sd[a-z][0-9]; do
|
for usb in /dev/sd[a-z][0-9]; do
|
||||||
[ ! -e "${usb}" ] || continue
|
[ ! -e "${usb}" ] && continue
|
||||||
if mount -r -t vfat "${usb}" /bootmnt >/dev/null 2>&1 ||\
|
if mount -r -t vfat "${usb}" /bootmnt >/dev/null 2>&1 ||\
|
||||||
mount -r -t ext2 "${usb}" /bootmnt >/dev/null 2>&1; then
|
mount -r -t ext2 "${usb}" /bootmnt >/dev/null 2>&1; then
|
||||||
if [ -e "/bootmnt/isomounts" ]; then
|
if [ -e "/bootmnt/isomounts" ]; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue