summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pc-sysinstall/backend-query/disk-list.sh
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/pc-sysinstall/backend-query/disk-list.sh')
-rwxr-xr-xusr.sbin/pc-sysinstall/backend-query/disk-list.sh13
1 files changed, 10 insertions, 3 deletions
diff --git a/usr.sbin/pc-sysinstall/backend-query/disk-list.sh b/usr.sbin/pc-sysinstall/backend-query/disk-list.sh
index eb6b437..4054f04 100755
--- a/usr.sbin/pc-sysinstall/backend-query/disk-list.sh
+++ b/usr.sbin/pc-sysinstall/backend-query/disk-list.sh
@@ -27,6 +27,7 @@
ARGS=$1
FLAGS_MD=""
+FLAGS_CD=""
FLAGS_VERBOSE=""
shift
@@ -39,6 +40,9 @@ do
-v)
FLAGS_VERBOSE=1
;;
+ -c)
+ FLAGS_CD=1
+ ;;
esac
shift
done
@@ -62,9 +66,12 @@ do
DEV="${i}"
# Make sure we don't find any cd devices
- case "${DEV}" in
- acd[0-9]*|cd[0-9]*|scd[0-9]*) continue ;;
- esac
+ if [ -z "${FLAGS_CD}" ]
+ then
+ case "${DEV}" in
+ acd[0-9]*|cd[0-9]*|scd[0-9]*) continue ;;
+ esac
+ fi
# Check the dmesg output for some more info about this device
NEWLINE=$(dmesg | sed -n "s/^$DEV: .*<\(.*\)>.*$/ <\1>/p" | head -n 1)
OpenPOWER on IntegriCloud