summaryrefslogtreecommitdiff
path: root/scripts/contrib/dialog-power-control
diff options
context:
space:
mode:
authorDarren Hart <dvhart@linux.intel.com>2014-07-16 14:16:02 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-07-19 00:08:48 +0100
commit40fe82fecf7a94b24893862ac17ee2bc749fc5e8 (patch)
treeb003457dd82416e0bc7828b20eff3e8052b31706 /scripts/contrib/dialog-power-control
parentb5a3f6465a7fd8e821b81da053bf7e11535f1652 (diff)
downloadopenembedded-core-40fe82fecf7a94b24893862ac17ee2bc749fc5e8.tar.gz
openembedded-core-40fe82fecf7a94b24893862ac17ee2bc749fc5e8.tar.bz2
openembedded-core-40fe82fecf7a94b24893862ac17ee2bc749fc5e8.zip
mkefidisk.sh: Add die() and cleanup() routines
Currently the script will attempt to continue even after a fatal error. Add a die() routine which will abort in the case of a fatal error and call a cleanup() routine to unmount any images or devices and remove the TMPDIR. Move the variable assignment and directory creation earlier in the script, making it more obvious what we need to clean up. Signed-off-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/contrib/dialog-power-control')
0 files changed, 0 insertions, 0 deletions