aboutsummaryrefslogtreecommitdiff
path: root/handlers
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2006-08-06 18:25:18 +0000
committerMicah Anderson <micah@riseup.net>2006-08-06 18:25:18 +0000
commit7814d463e4e1f55b8b34c019f49a384aeee00193 (patch)
treee19369745a05d1b961844176119bc0fdc816b7d9 /handlers
parent29007116b3d05af1dabd49eb9c56711ff35b40ff (diff)
downloadbackupninja-7814d463e4e1f55b8b34c019f49a384aeee00193.tar.gz
backupninja-7814d463e4e1f55b8b34c019f49a384aeee00193.tar.bz2
Added warning if no devices were found on the system
Diffstat (limited to 'handlers')
-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/}