HowTo Shutdown NST Using A USB Flash Drive Install For Relocation

From NST Wiki
Revision as of 08:28, 25 October 2009 by Rwh (talk | contribs) (Created page with '== Preparing NST For Relocation Using "/sbin/halt.local" == <pre class="programListing"> #! /bin/bash # Source function library... . "/etc/init.d/functions"; echo -n "Preparin…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Preparing NST For Relocation Using "/sbin/halt.local"

#! /bin/bash

# Source function library...
. "/etc/init.d/functions";

echo -n "Preparing NST for relocation:";

#
# Prepare for move on each shutdown...
/usr/bin/nstboot --move;

if [ ${?} -eq 0 ]; then
  echo_success;         # signal success...
  echo;
  exit 0;
else
  echo_failure;         # signal failure...
  echo;
  exit 1;
fi