-#!/bin/bash -l
+#!/bin/bash
# Copyright (C) 2016 Ian Kelling
# Licensed under the Apache License, Version 2.0 (the "License");
# See the License for the specific language governing permissions and
# limitations under the License.
-x="$(readlink -f "$BASH_SOURCE")"; source "${x%/*}/bash-trace"
+if [[ -s ~/.bashrc ]];then . ~/.bashrc;fi
reboot=true
if [[ $1 == -r ]]; then
myfai-chboot $host
live-kexec $host ||:
else
- cleanup() { pxe-server; }; _errcatch_cleanup=cleanup
+ err-cleanup() { pxe-server; }
pxe-server $host fai
if $reboot; then
fi
pxe-server -a
- unset _errcatch_cleanup
+ unset err-cleanup
fi
error=true