New Auto_reboot plug-in II

Also, added code to obmc boot test to process rest_username and
rest_password.

Change-Id: I7b64be7072d4848230e9d47a4da54ac89794af64
diff --git a/bin/process_plug_in_packages.py b/bin/process_plug_in_packages.py
index fc9f64b..900dd31 100755
--- a/bin/process_plug_in_packages.py
+++ b/bin/process_plug_in_packages.py
@@ -238,7 +238,13 @@
         status_dir_path =\
             add_trailing_slash(os.environ.get("STATUS_DIR_PATH",
                                               os.environ['HOME']
-                                              + "/autoipl/status/"))
+                                              + "/status/"))
+        if not os.path.isdir(status_dir_path):
+            AUTOBOOT_EXECDIR = \
+                add_trailing_slash(os.environ.get("AUTOBOOT_EXECDIR", ""))
+            status_dir_path = AUTOBOOT_EXECDIR + "logs/"
+            if not os.path.exists(status_dir_path):
+                os.makedirs(status_dir_path)
         status_file_name = autoscript_prefix + "." + file_date_time_stamp() \
             + ".status"
         autoscript_subcmd = "autoscript --status_dir_path=" + status_dir_path\