+ # Import the local pool if needed and option was given to do so, else error out
+ zpool list -H "$i" >/dev/null 2>&1
+ if [ $? != 0 ]; then
+ if [[ $import_export_backup_pool == 1 ]]; then
+ zpool import $i
+ if [ $? != 0 ]; then
+ echo "-E- unable to import the pool $i"
+ exit 1
+ fi
+ else
+ echo "-E- The local pool, '$i' doesn't seem to exist."
+ exit 1
+ fi
+ fi
+