autoreboot: add one-time support to obmcutil

Since this is a one-time property and is cleared on a host stop, no need
to provide an option to set it back to true in obmcutil.

Tested:
root@witherspoon:/lib/systemd/system# obmcutil hostrebootoffonetime
root@witherspoon:/lib/systemd/system# busctl get-property xyz.openbmc_project.Settings /xyz/openbmc_project/control/host0/auto_reboot/one_time xyz.openbmc_project.Control.Boot.RebootPolicy AutoReboot
b false

Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: I8a18bd60bde038825344120b94c1ab327900ae41
diff --git a/obmcutil b/obmcutil
index b9c5b18..6fef0e0 100755
--- a/obmcutil
+++ b/obmcutil
@@ -49,6 +49,8 @@
     echo "Examples:"
     echo ""
     echo "obmcutil hostrebootoff Disable auto reboot of Host from Quiesce state"
+    echo "obmcutil hostrebootoffonetime Disable auto reboot of Host from"
+    echo "                              Quiesce state for a single boot"
     echo "obmcutil hostrebooton  Enable auto reboot of Host from Quiesce state"
     echo ""
     echo "obmcutil bmcrebootoff  Disable reboot of BMC"
@@ -387,6 +389,14 @@
             VALUE=false
             set_property $SERVICE $OBJECT $INTERFACE $PROPERTY "b" $VALUE
             ;;
+        hostrebootoffonetime)
+            OBJECT=$CONTROL_OBJECT/host0/auto_reboot/one_time
+            SERVICE=$(mapper get-service $OBJECT)
+            INTERFACE=$CONTROL_INTERFACE.Boot.RebootPolicy
+            PROPERTY=AutoReboot
+            VALUE=false
+            set_property $SERVICE $OBJECT $INTERFACE $PROPERTY "b" $VALUE
+        ;;
         hostrebooton)
             OBJECT=$CONTROL_OBJECT/host0/auto_reboot
             SERVICE=$(mapper get-service $OBJECT)