Difference between revisions of "HowTo Shutdown NST Using A USB Flash Drive Install For Relocation"
From NST Wiki
Jump to navigationJump to search (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…') |
(→Preparing NST For Relocation Using "/sbin/halt.local") |
||
Line 1: | Line 1: | ||
− | == Preparing NST For Relocation Using "/sbin/halt.local" == | + | == Preparing NST For Relocation Using: "/sbin/halt.local" == |
+ | |||
+ | If you are using a "'''USB Flash Drive'''" hard disk installation, The following "'''/sbin/halt.local'''" file can be created so the the "'''USB Flash Drive'''" can be relocated to any system that supports booting a "'''USB Flash Drive'''". | ||
<pre class="programListing"> | <pre class="programListing"> |
Revision as of 17:13, 25 October 2009
Preparing NST For Relocation Using: "/sbin/halt.local"
If you are using a "USB Flash Drive" hard disk installation, The following "/sbin/halt.local" file can be created so the the "USB Flash Drive" can be relocated to any system that supports booting a "USB Flash Drive".
#! /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