X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=dsfull;h=cdb840b9272779b9abf378213ef5a5ea773b06dc;hp=f1371d18ab07f59e43c2192cecec69b4fbef5a5f;hb=78a1427fc167ccee73d448054a9c40c19d737ed3;hpb=19fcc3931853969ed5aa97897795557d324cae39 diff --git a/dsfull b/dsfull index f1371d1..cdb840b 100755 --- a/dsfull +++ b/dsfull @@ -1,4 +1,4 @@ -#!/bin/bash -l +#!/bin/bash # Copyright (C) 2016 Ian Kelling # Licensed under the Apache License, Version 2.0 (the "License"); @@ -13,7 +13,7 @@ # 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 @@ -70,7 +70,7 @@ if $kexec; then myfai-chboot $host live-kexec $host ||: else - cleanup() { pxe-server; }; _errcatch_cleanup=cleanup + errcatch-cleanup() { pxe-server; } pxe-server $host fai if $reboot; then @@ -79,7 +79,7 @@ else fi pxe-server -a - unset _errcatch_cleanup + unset errcatch-cleanup fi error=true