From 7814d463e4e1f55b8b34c019f49a384aeee00193 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Sun, 6 Aug 2006 18:25:18 +0000 Subject: Added warning if no devices were found on the system --- handlers/sys | 3 +++ 1 file changed, 3 insertions(+) diff --git a/handlers/sys b/handlers/sys index a83baaa..d0e2057 100755 --- a/handlers/sys +++ b/handlers/sys @@ -450,6 +450,9 @@ fi if [ "$partitions" == "yes" ]; then devices=`$HWINFO --disk | grep "Device File" | cut -d\ -f5` + if [ "$devices" == "" ]; then + warning "No harddisks found" + fi for dev in $devices; do [ -b $dev ] || continue label=${dev#/dev/} -- cgit v1.2.3