aboutsummaryrefslogtreecommitdiff
path: root/handlers/sys
diff options
context:
space:
mode:
Diffstat (limited to 'handlers/sys')
-rwxr-xr-xhandlers/sys3
1 files changed, 3 insertions, 0 deletions
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/}